polkawallet-io / polkawallet-flutter

Replace to: https://github.com/polkawallet-io/app
Apache License 2.0
110 stars 48 forks source link

SS58 prefix settings bug #20

Closed RomeroYang closed 4 years ago

RomeroYang commented 4 years ago

keyring.encodeAddress() method doesn't run properly with param ss58Format = 0 in polkadot.js.

We need to refactor the prefix settings logic as defining the prefix and then reload the Api instance.

RomeroYang commented 4 years ago

initiate polkadot.js API instance with param ss58Format = 0 to fix this temporarily.