AcalaNetwork / chopsticks

Create parallel reality of your Substrate network.
Apache License 2.0
134 stars 80 forks source link

storage override needs to support storage value type of `()` #515

Closed xlc closed 10 months ago

xlc commented 10 months ago

for example, whitelist.whitelistdCall

qiweiii commented 10 months ago

how do I reproduce this?

xlc commented 10 months ago
Screenshot 2023-11-09 at 8 55 09 PM

this is on Polkadot.

We need a way to use dev_setStorage to add and remove whitelistedCall entry. The value type is (), which is basically a void so we may need to distinguish null and undefined

ermalkaleci commented 10 months ago

@xlc just pass '0x' for empty values

Whitelist:
    WhitelistedCall:
      -
        -
          - '0xe284be84dcfaf714ef2b7717b54914632406f2c17d8203d3268e4c4ca68fa144'
        - 0x
qiweiii commented 10 months ago

Maybe we should add it in readme or in docs abt how to use these, so user knows

xlc commented 10 months ago

Yeah we need to explain this