-
Notifications
You must be signed in to change notification settings - Fork 208
Amend Operation
kaikai edited this page Apr 3, 2019
·
1 revision
- contract addr:
0xffffffffffffffffffffffffffffffffff020010
- key:
0x25
- value:
0x0
should replace the admin privKey and url
cita-cli
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020010 --kv 0x0000000000000000000000000000000000000000000000000000000000000025 0x0000000000000000000000000000000000000000000000000000000000000000 --admin-private-key 0x_
-
addr: 0xffffffffffffffffffffffffffffffffff020000
-
struct:
struct TokenInfo {
string name;
string symbol;
string avatar;
}
- name: CITA Test Token
- symbol: CTT
- avatar: https://cdn.cryptape.com/icon_cita.png
CITA Test Token
- key: 0x2c
- value: 0x43495441205465737420546f6b656e000000000000000000000000000000001e
CTT
- key: 0x2d
- value: 0x4354540000000000000000000000000000000000000000000000000000000006
https://cdn.cryptape.com/icon_cita.png
- key: 0x2e
- value: 0x4d
and
- key: 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7e
- value: 0x68747470733a2f2f63646e2e63727970746170652e636f6d2f69636f6e5f6369
and
- key: 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7f
- value: 0x74612e706e670000000000000000000000000000000000000000000000000000
cita-cli
notice:* set the url and replace the admin private-key*
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6 --kv 0x000000000000000000000000000000000000000000000000000000000000002c 0x43495441205465737420546f6b656e000000000000000000000000000000001e
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x_ --kv 0x000000000000000000000000000000000000000000000000000000000000002d 0x4354540000000000000000000000000000000000000000000000000000000006
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x_ --kv 0x000000000000000000000000000000000000000000000000000000000000002e 0x000000000000000000000000000000000000000000000000000000000000004d
and
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x_ --kv 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7e 0x68747470733a2f2f63646e2e63727970746170652e636f6d2f69636f6e5f6369
and
amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x_ --kv 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7f 0x74612e706e670000000000000000000000000000000000000000000000000000