Skip to content

Commit

Permalink
add write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayStar123 committed Sep 11, 2024
1 parent 2ebb457 commit 2a822da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/src6-vault/multi_asset_vault/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl SRC20 for Contract {
}

abi SetSRC20Data {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand All @@ -194,7 +194,7 @@ abi SetSRC20Data {
}

impl SetSRC20Data for Contract {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions examples/src6-vault/single_asset_single_sub_vault/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl SRC20 for Contract {
}

abi SetSRC20Data {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand All @@ -214,7 +214,7 @@ abi SetSRC20Data {
}

impl SetSRC20Data for Contract {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions examples/src6-vault/single_asset_vault/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl SRC20 for Contract {
}

abi SetSRC20Data {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand All @@ -208,7 +208,7 @@ abi SetSRC20Data {
}

impl SetSRC20Data for Contract {
#[storage(read)]
#[storage(read, write)]
fn set_src20_data(
asset: AssetId,
name: Option<String>,
Expand Down

0 comments on commit 2a822da

Please sign in to comment.