Skip to content

Commit

Permalink
Update examples/soroban/nft/src/nft.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Willem Wyndham <[email protected]>
  • Loading branch information
elizabethengelman and willemneal committed Jul 2, 2024
1 parent 5d2765a commit 8ee77f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/soroban/nft/src/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Default for MyNonFungibleToken {
}

impl IsInitable for MyNonFungibleToken {
fn nft_init(&mut self, admin: Address, name: Bytes) {
fn nft_init(&self, admin: Address, name: Bytes) {
Contract::admin_get().unwrap().require_auth();
MyNonFungibleToken::set_lazy(MyNonFungibleToken::new(admin, name));
}
Expand Down
2 changes: 1 addition & 1 deletion examples/soroban/nft/src/subcontract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub trait IsNonFungible {
#[subcontract]
pub trait IsInitable {
fn nft_init(
&mut self,
&self,
admin: loam_sdk::soroban_sdk::Address,
name: loam_sdk::soroban_sdk::Bytes,
);
Expand Down

0 comments on commit 8ee77f3

Please sign in to comment.