PlatONEnterprise / PlatONE-Go

PlatONE client implemented by golang
GNU Lesser General Public License v3.0
104 stars 49 forks source link

更新用户信息 #46

Open luoyele opened 3 years ago

luoyele commented 3 years ago

./../bin/ctool cnsInvoke --cns "__sys_UserManager" --func 'update("0x93752e109585558f517f3fbf3502f08ca38f4d16",{"address":"0x93752e109585558f517f3fbf3502f08ca38f4d16","name":"Alice","mobile":"1312222","email":"123@qq.com","status":0})' --abi ../conf/contracts/userRegister.cpp.abi.json --config config.json panic: invokeContract contract error, function update not found in ../conf/contracts/userRegister.cpp.abi.json

goroutine 1 [running]: github.com/PlatONEnterprise/PlatONE-Go/cmd/ctool/core.cnsInvoke(0xc00265e420, 0x1010100, 0xc00265e420) /mnt/cdt/platone/build/_workspace/src/github.com/PlatONEnetwork/PlatONE-Go/cmd/ctool/core/contractcmd.go:252 +0x4fc gopkg.in/urfave/cli%2ev1.HandleAction(0xd5fb20, 0xe86a10, 0xc00265e420, 0xc0000a9600, 0x0) /mnt/cdt/platone/build/_workspace/pkg/mod/gopkg.in/urfave/cli.v1@v1.20.0/app.go:490 +0x82 gopkg.in/urfave/cli%2ev1.Command.Run(0xe57bbd, 0x9, 0x0, 0x0, 0x15ac5c0, 0x1, 0x1, 0xe67b5c, 0x1c, 0x0, ...) /mnt/cdt/platone/build/_workspace/pkg/mod/gopkg.in/urfave/cli.v1@v1.20.0/command.go:210 +0x9bb gopkg.in/urfave/cli%2ev1.(*App).Run(0xc0000dcd00, 0xc0000200a0, 0xa, 0xa, 0x0, 0x0) /mnt/cdt/platone/build/_workspace/pkg/mod/gopkg.in/urfave/cli.v1@v1.20.0/app.go:255 +0x768 main.main() /mnt/cdt/platone/build/_workspace/src/github.com/PlatONEnetwork/PlatONE-Go/cmd/ctool/main.go:40 +0x55