Skip to content

Commit

Permalink
fix(docs): Use programmable_move_call instead of command
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Aug 13, 2024
1 parent cc19022 commit 2f9e15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/developer/standards/coin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ let deny_list = ptb.obj(ObjectArg::SharedObject {
let deny_cap = ptb.obj(ObjectArg::ImmOrOwnedObject(deny_cap))?;
let address_to_ban = IotaAddress::from_str("0x...")?;
let address_to_ban_arg = ptb.pure(address_to_ban)?;
ptb.command(Command::move_call(
ptb.programmable_move_call(
IOTA_FRAMEWORK_PACKAGE_ID,
Identifier::from(COIN_MODULE_NAME),
Identifier::from_str("deny_list_add")?,
vec![<otw-type>],
vec![deny_list, deny_cap, address_to_ban_arg],
));
);

let builder = ptb.finish();
```
Expand Down

0 comments on commit 2f9e15c

Please sign in to comment.