转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 上一页 版本 5 下一步 »

https://github.com/starcoinorg/starcoin-cookbook/tree/table_extension/examples/table-test

demo相关

1.先修改Move.toml

TableTest相关账号

  1. 执行deploy

    dev deploy /Users/YSG/Github/starcoin-cookbook/examples/table-test/release/table-test.v0.0.1.blob -s 0xed9ea1f3533c14e1b52d9ff6475776ba -b

  2. 构建table

    account execute-function --function 0xed9ea1f3533c14e1b52d9ff6475776ba::TableTest::make_test_tables -s 0xed9ea1f3533c14e1b52d9ff6475776ba -b


4. table写数据

account execute-function --function 0xed9ea1f3533c14e1b52d9ff6475776ba::TableTest::incr_table_elem -s 0xed9ea1f3533c14e1b52d9ff6475776ba --arg 2u8 -b
  1. table展示数据

    account execute-function --function 0xed9ea1f3533c14e1b52d9ff6475776ba::TableTest::show_table_elem -s 0xed9ea1f3533c14e1b52d9ff6475776ba --arg 2u8 -b
  • 无标签