Skip to content

Commit 8ee77f3

Browse files
Update examples/soroban/nft/src/nft.rs
Co-authored-by: Willem Wyndham <willem@wyndham.tech>
1 parent 5d2765a commit 8ee77f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/soroban/nft/src/nft.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Default for MyNonFungibleToken {
4242
}
4343

4444
impl IsInitable for MyNonFungibleToken {
45-
fn nft_init(&mut self, admin: Address, name: Bytes) {
45+
fn nft_init(&self, admin: Address, name: Bytes) {
4646
Contract::admin_get().unwrap().require_auth();
4747
MyNonFungibleToken::set_lazy(MyNonFungibleToken::new(admin, name));
4848
}

examples/soroban/nft/src/subcontract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub trait IsNonFungible {
3030
#[subcontract]
3131
pub trait IsInitable {
3232
fn nft_init(
33-
&mut self,
33+
&self,
3434
admin: loam_sdk::soroban_sdk::Address,
3535
name: loam_sdk::soroban_sdk::Bytes,
3636
);

0 commit comments

Comments
 (0)