Skip to content

Commit 33fd6b3

Browse files
decofeSlokhgithub-actions[bot]
authored
fix: update mainnet escrow contract address (#84)
* fix: update mainnet escrow contract address New channel escrow deployed at 0x33b901018174DDabE4841042ab76ba85D4e24f25. Co-Authored-By: Kartik <4983318+Slokh@users.noreply.github.com> * chore: add changelog --------- Co-authored-by: Kartik <4983318+Slokh@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent fd8d450 commit 33fd6b3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.changelog/old-sharks-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pympp: patch
3+
---
4+
5+
Updated mainnet escrow contract address to `0x33b901018174DDabE4841042ab76ba85D4e24f25`.

src/mpp/methods/tempo/_defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# Chain ID -> escrow contract address mapping (read-only)
3838
ESCROW_CONTRACTS: MappingProxyType[int, str] = MappingProxyType(
3939
{
40-
CHAIN_ID: "0x0901aED692C755b870F9605E56BAA66c35BEfF69",
40+
CHAIN_ID: "0x33b901018174DDabE4841042ab76ba85D4e24f25",
4141
TESTNET_CHAIN_ID: "0x542831e3E4Ace07559b7C8787395f4Fb99F70787",
4242
}
4343
)

tests/test_tempo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,13 @@ def test_escrow_contracts_per_chain(self) -> None:
990990
"""ESCROW_CONTRACTS should map both mainnet and testnet."""
991991
assert CHAIN_ID in ESCROW_CONTRACTS
992992
assert TESTNET_CHAIN_ID in ESCROW_CONTRACTS
993-
assert ESCROW_CONTRACTS[CHAIN_ID] == "0x0901aED692C755b870F9605E56BAA66c35BEfF69"
993+
assert ESCROW_CONTRACTS[CHAIN_ID] == "0x33b901018174DDabE4841042ab76ba85D4e24f25"
994994
assert ESCROW_CONTRACTS[TESTNET_CHAIN_ID] == "0x542831e3E4Ace07559b7C8787395f4Fb99F70787"
995995

996996
def test_escrow_contract_for_chain_mainnet(self) -> None:
997997
"""escrow_contract_for_chain should return mainnet address."""
998998
addr = escrow_contract_for_chain(4217)
999-
assert addr == "0x0901aED692C755b870F9605E56BAA66c35BEfF69"
999+
assert addr == "0x33b901018174DDabE4841042ab76ba85D4e24f25"
10001000

10011001
def test_escrow_contract_for_chain_testnet(self) -> None:
10021002
"""escrow_contract_for_chain should return testnet address."""

0 commit comments

Comments
 (0)