mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Fix Agra hf scheduling on Mumbai (#8620)
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
This commit is contained in:
parent
513fd50fa5
commit
83bbe0dd37
@ -58,11 +58,11 @@ func TestBorKeyValueConfigHelper(t *testing.T) {
|
||||
|
||||
burntContract := map[string]common.Address{
|
||||
"22640000": address1,
|
||||
"41824608": address2,
|
||||
"41874000": address2,
|
||||
}
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 22640000), address1)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 22640000+1), address1)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41824608-1), address1)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41824608), address2)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41824608+1), address2)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41874000-1), address1)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41874000), address2)
|
||||
assert.Equal(t, borKeyValueConfigHelper(burntContract, 41874000+1), address2)
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -117,19 +117,19 @@ func TestGetBurntContract(t *testing.T) {
|
||||
assert.Equal(t, common.HexToAddress("0x6BBe78ee9e474842Dbd4AB4987b3CeFE88426A92"), *addr)
|
||||
|
||||
// Mumbai
|
||||
addr = MumbaiChainConfig.GetBurntContract(22_640_000)
|
||||
addr = MumbaiChainConfig.GetBurntContract(22640000)
|
||||
require.NotNil(t, addr)
|
||||
assert.Equal(t, common.HexToAddress("0x70bcA57F4579f58670aB2d18Ef16e02C17553C38"), *addr)
|
||||
addr = MumbaiChainConfig.GetBurntContract(22_640_001)
|
||||
addr = MumbaiChainConfig.GetBurntContract(22640000 + 1)
|
||||
require.NotNil(t, addr)
|
||||
assert.Equal(t, common.HexToAddress("0x70bcA57F4579f58670aB2d18Ef16e02C17553C38"), *addr)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41_824_607)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41874000 - 1)
|
||||
require.NotNil(t, addr)
|
||||
assert.Equal(t, common.HexToAddress("0x70bcA57F4579f58670aB2d18Ef16e02C17553C38"), *addr)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41_824_608)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41874000)
|
||||
require.NotNil(t, addr)
|
||||
assert.Equal(t, common.HexToAddress("0x617b94CCCC2511808A3C9478ebb96f455CF167aA"), *addr)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41_824_609)
|
||||
addr = MumbaiChainConfig.GetBurntContract(41874000 + 1)
|
||||
require.NotNil(t, addr)
|
||||
assert.Equal(t, common.HexToAddress("0x617b94CCCC2511808A3C9478ebb96f455CF167aA"), *addr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user