-
Notifications
You must be signed in to change notification settings - Fork 344
How much should I fill in for burrow to metamask chainid? #1411
Comments
Hi @bitbeb I recently changed our behaviour here, before we were using a stub ChainID but that offers no reply protection. I am currently using the following code: https://github.com/hyperledger/burrow/blob/master/crypto/signature.go#L120-L122 to establish a web3-compatible integer ChainID based on our string one. You would need your tool to provide that integer value (check how any CLI wants it to be encoded). If there is a better standard I could use here vis-a-vis string-to-integer chain id please let me know. |
Hello! May I ask what I got according to your method big.int The result indicates that the number is too large. The chainid of my buorrw is "chainname": "burrowchain"_ FAB3C1", https://github.com/hyperledger/burrow/blob/master/crypto/signature.go#L120-L122 to chainID:98398506046391950612428913232117193968501817186218405401892336238027608097865 |
Hm, I can see there may be an issue here, however I'm not quite sure how you obtained In Burrow the ChainID is derived from the However, if you want to use an explicit For metamask compatibility I think if you set your
Then I think you should be able to use the chain ID |
func (genesisDoc *GenesisDoc) ChainID() string {
|
BurrowDir = ".burrow" [GenesisDoc] [[GenesisDoc.Accounts]] |
func (genesisDoc *GenesisDoc) ChainID() string { |
A few things:
|
How much should I fill in for burrow to metamask chainid?
thank you
The text was updated successfully, but these errors were encountered: