github.com/aergoio/aergo@v1.3.1/cmd/brick/example/hello.brick (about) 1 # create an account and deposit coin 2 inject bj 100 3 4 # check balance 5 getstate bj 6 7 # delpoy helloworld smart contract 8 deploy bj 0 helloctr `./example/hello.lua` 9 10 # query to contract, this will print "hello world" 11 query helloctr hello `[]` `"hello world"` 12 13 # call and execute contract 14 call bj 0 helloctr set_name `["aergo"]` 15 16 # query again, this now will print "hello aergo" 17 query helloctr hello `[]` `"hello aergo"`