Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changelog/big-trees-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
pympp: patch
---

Updated the testnet escrow contract address to `0xe1c4d3dce17bc111181ddf716f75bae49e61a336`.
2 changes: 1 addition & 1 deletion src/mpp/methods/tempo/_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
ESCROW_CONTRACTS: MappingProxyType[int, str] = MappingProxyType(
{
CHAIN_ID: "0x33b901018174DDabE4841042ab76ba85D4e24f25",
TESTNET_CHAIN_ID: "0x542831e3E4Ace07559b7C8787395f4Fb99F70787",
TESTNET_CHAIN_ID: "0xe1c4d3dce17bc111181ddf716f75bae49e61a336",
}
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_tempo.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ def test_escrow_contracts_per_chain(self) -> None:
assert CHAIN_ID in ESCROW_CONTRACTS
assert TESTNET_CHAIN_ID in ESCROW_CONTRACTS
assert ESCROW_CONTRACTS[CHAIN_ID] == "0x33b901018174DDabE4841042ab76ba85D4e24f25"
assert ESCROW_CONTRACTS[TESTNET_CHAIN_ID] == "0x542831e3E4Ace07559b7C8787395f4Fb99F70787"
assert ESCROW_CONTRACTS[TESTNET_CHAIN_ID] == "0xe1c4d3dce17bc111181ddf716f75bae49e61a336"

def test_escrow_contract_for_chain_mainnet(self) -> None:
"""escrow_contract_for_chain should return mainnet address."""
Expand All @@ -1001,7 +1001,7 @@ def test_escrow_contract_for_chain_mainnet(self) -> None:
def test_escrow_contract_for_chain_testnet(self) -> None:
"""escrow_contract_for_chain should return testnet address."""
addr = escrow_contract_for_chain(42431)
assert addr == "0x542831e3E4Ace07559b7C8787395f4Fb99F70787"
assert addr == "0xe1c4d3dce17bc111181ddf716f75bae49e61a336"

def test_escrow_contract_for_chain_unknown(self) -> None:
"""escrow_contract_for_chain should raise for unknown chain."""
Expand Down