Closed wow-sven closed 1 year ago
part of #69
Packaging Modules: 0000000000000000000000000000000000000000000000000000000000000123::counter Error: config file not found
Packaging Modules: 0000000000000000000000000000000000000000000000000000000000000123::counter Error: config file not found
Optimized the error message https://github.com/rooch-network/rooch/pull/76
Package of example for #60
I merge this first.
In the future, we need to disable the global storage instructions. So, this example need to refactor the move_to|borrow_global
to account_storage function.
add example readme
A full workflow example:
Counter
module:0x123::counter::init
to init aCounter
resource:0x123::counter::value
, you will see the output value:[Number(0)]
rooch move run --function 0x123::counter::increase --sender-account 0x123
rooch move view --function 0x123::counter::value [Number(1)]
rooch object --id 0x123
Some("RawObject { id: ObjectID(0000000000000000000000000000000000000000000000000000000000000123), owner: 0000000000000000000000000000000000000000000000000000000000000123, value: [144, 120, 228, 155, 92, 27, 15, 93, 80, 134, 62, 134, 236, 51, 180, 120, 225, 111, 149, 125, 180, 108, 254, 148, 172, 217, 252, 190, 12, 87, 45, 125, 181, 196, 103, 186, 252, 91, 195, 39, 22, 109, 50, 62, 216, 114, 199, 183, 54, 56, 99, 170, 138, 171, 237, 144, 214, 105, 58, 76, 189, 250, 204, 252] }")
rooch resource --address 0x123 --resource 0x123::counter::Counter
Some("store key 0x123::counter::Counter {\n value: 1\n}")