Skip to content

Amend Operation

kaikai edited this page Apr 3, 2019 · 1 revision

Amend quotaPrice to 0

Basic info

  • contract addr: 0xffffffffffffffffffffffffffffffffff020010
  • key: 0x25
  • value: 0x0

Amend operation using cita-cli

should replace the admin privKey and url

cita-cli

amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020010 --kv 0x0000000000000000000000000000000000000000000000000000000000000025 0x0000000000000000000000000000000000000000000000000000000000000000 --admin-private-key 0x_

Amend token info

basic info

  • addr: 0xffffffffffffffffffffffffffffffffff020000

  • struct:

struct TokenInfo {
    string name;
    string symbol;
    string avatar;
}

new token info:

key-value info

name

CITA Test Token

  • key: 0x2c
  • value: 0x43495441205465737420546f6b656e000000000000000000000000000000001e

symbol

CTT

  • key: 0x2d
  • value: 0x4354540000000000000000000000000000000000000000000000000000000006

avatar

https://cdn.cryptape.com/icon_cita.png

  • key: 0x2e
  • value: 0x4d

and

  • key: 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7e
  • value: 0x68747470733a2f2f63646e2e63727970746170652e636f6d2f69636f6e5f6369

and

  • key: 0x37fa166cbdbfbb1561ccd9ea985ec0218b5e68502e230525f544285b2bdf3d7f
  • value: 0x74612e706e670000000000000000000000000000000000000000000000000000

Use cita-cli to operate:

cita-cli

notice:* set the url and replace the admin private-key*

name

amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6 --kv 0x000000000000000000000000000000000000000000000000000000000000002c 0x43495441205465737420546f6b656e000000000000000000000000000000001e

symbol

amend set-h256 --address 0xffffffffffffffffffffffffffffffffff020000 --admin-private-key 0x_ --kv 0x000000000000000000000000000000000000000000000000000000000000002d 0x4354540000000000000000000000000000000000000000000000000000000006

avatar

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