diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index b067137bf5..bacbbbdcb0 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -1971,6 +1971,7 @@ class HoodethTestnet extends Testnet implements EthereumNetwork { explorerUrl = 'https://explorer.testnet.chain.robinhood.com/tx/'; accountExplorerUrl = 'https://explorer.testnet.chain.robinhood.com/address/'; chainId = 46630; + tokenOperationHashPrefix = '46630-ERC20'; batcherContractAddress = '0x3e1e5d78e44f15593b3b61ed278f12c27f0ff33e'; nativeCoinOperationHashPrefix = '46630'; } @@ -1981,6 +1982,7 @@ class Hoodeth extends Mainnet implements EthereumNetwork { explorerUrl = 'https://robinhoodchain.blockscout.com/tx/'; accountExplorerUrl = 'https://robinhoodchain.blockscout.com/address/'; chainId = 4663; + tokenOperationHashPrefix = '4663-ERC20'; batcherContractAddress = '0x3e1e5d78e44f15593b3b61ed278f12c27f0ff33e'; nativeCoinOperationHashPrefix = '4663'; } diff --git a/modules/statics/test/unit/networks.ts b/modules/statics/test/unit/networks.ts index 99fe196a20..dedb47f868 100644 --- a/modules/statics/test/unit/networks.ts +++ b/modules/statics/test/unit/networks.ts @@ -92,6 +92,17 @@ Object.entries(Networks).forEach(([category, networks]) => { }); }); +describe('Hoodeth Network', function () { + it('should use chain-specific ERC20 operation hash prefixes', function () { + Networks.main.hoodeth.chainId.should.equal(4663); + Networks.main.hoodeth.nativeCoinOperationHashPrefix.should.equal('4663'); + Networks.main.hoodeth.tokenOperationHashPrefix.should.equal('4663-ERC20'); + Networks.test.hoodeth.chainId.should.equal(46630); + Networks.test.hoodeth.nativeCoinOperationHashPrefix.should.equal('46630'); + Networks.test.hoodeth.tokenOperationHashPrefix.should.equal('46630-ERC20'); + }); +}); + describe('Cosmos-family addressPrefix', function () { const cases: Array<[string, AccountNetwork, string]> = [ ['main.atom', Networks.main.atom, 'cosmos'],