Fix Agra hf scheduling on Mumbai (#8620)

Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
This commit is contained in:
Anshal Shukla 2023-10-30 19:48:47 +05:30 committed by GitHub
parent 513fd50fa5
commit 83bbe0dd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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)
}