Skip to content

YuexingZeng/sui-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

步骤

启动本地网络

sui genesis
RUST_LOG="consensus=off" sui start

修改代码

  1. 设置packageObjectId, 用以下命令安装package,获得packageObjectId
sui client publish ~/sui/sui_programmability/examples/basics/ --gas-budget 10000
  1. 设置gamePkgObjectId, stateObjectId 类似步骤1,安装 battleship game合约,获得上述id

  2. 设置activeAddrKeystore, 在 ~/.sui/sui_config/sui.keystore 中查看与active address 对应的keysotre

  3. 要确保项目根目录下存在从 BattleZips-Circom/zk/ 拷贝过来的zk目录, 该目录包含 BattleZips-Circom 项目经yarn setup 之后生成的zk key等文件。

安装依赖

npm install

运行测试

ts-node index.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published