Skip to content

Commit 216baa3

Browse files
committed
fixed tests
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
1 parent 5a4c408 commit 216baa3

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

broadcast/deployed-addresses.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,9 @@
484484
"transaction_hash": "0xf72c3e798991af0e7123197bfd7da40585f936b4353b91159b749008ceac541a"
485485
},
486486
"SponsoredCCTPDstPeriphery": {
487-
"address": "0x83e245941befbde29682df068bcda006a804eb0c",
488-
"block_number": 20793257,
489-
"transaction_hash": "0xb08e0d23618a1447781b9071792c660bfd76db006b105822ea41d65e0ddc2802"
487+
"address": "0xb63c02e60c05f05975653edc83f876c334e07c6d",
488+
"block_number": 21313320,
489+
"transaction_hash": "0x7ba663e21e7399474f6ce30190460110c285ff703b1bc1f661936550fd4997a5"
490490
},
491491
"PermissionedMulticallHandler": {
492492
"address": "0x0980d0f6799ca06c71ffafdc0e423cf2b0f20502",

broadcast/deployed-addresses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ This file contains the latest deployed smart contract addresses from the broadca
160160

161161
| Contract Name | Address |
162162
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
163-
| DonationBox | [0x002E76DC036A1efF1488ee5435eE66C6aBF32674](https://hyperevmscan.io//address/0x002E76DC036A1efF1488ee5435eE66C6aBF32674) |
163+
| DonationBox | [0xbC217096db9EB6d2782c1d9E725D462077a4d1f6](https://hyperevmscan.io//address/0xbC217096db9EB6d2782c1d9E725D462077a4d1f6) |
164164
| DonationBox | [0x90E2487764E5316a2e4109c2Ed40A3B3ad423659](https://hyperevmscan.io//address/0x90E2487764E5316a2e4109c2Ed40A3B3ad423659) |
165165
| DstOFTHandler | [0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461](https://hyperevmscan.io//address/0x40153DdFAd90C49dbE3F5c9F96f2a5B25ec67461) |
166166
| Helios | [0xc19B7EF43a6eBd393446F401d1eCFac01B181ac0](https://hyperevmscan.io//address/0xc19B7EF43a6eBd393446F401d1eCFac01B181ac0) |
@@ -170,7 +170,7 @@ This file contains the latest deployed smart contract addresses from the broadca
170170
| SpokePool | [0x35E63eA3eb0fb7A3bc543C71FB66412e1F6B0E04](https://hyperevmscan.io//address/0x35E63eA3eb0fb7A3bc543C71FB66412e1F6B0E04) |
171171
| SpokePoolPeriphery | [0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb](https://hyperevmscan.io//address/0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb) |
172172
| SpokePoolVerifier | [0x3Fb9cED51E968594C87963a371Ed90c39519f65A](https://hyperevmscan.io//address/0x3Fb9cED51E968594C87963a371Ed90c39519f65A) |
173-
| SponsoredCCTPDstPeriphery | [0x83e245941BefbDe29682dF068Bcda006A804eb0C](https://hyperevmscan.io//address/0x83e245941BefbDe29682dF068Bcda006A804eb0C) |
173+
| SponsoredCCTPDstPeriphery | [0xb63c02e60C05F05975653edC83F876C334E07C6d](https://hyperevmscan.io//address/0xb63c02e60C05F05975653edC83F876C334E07C6d) |
174174

175175
## Lisk (1135)
176176

test/evm/foundry/local/HyperCoreFlowExecutor.t.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,15 @@ contract HyperCoreFlowExecutorTest is BaseSimulatorTest {
6666

6767
finalRecipient = makeAddr("finalRecipient");
6868

69-
token = new MockERC20();
69+
token = MockERC20(0xb88339CB7199b77E23DB6E890353E22632Ba630f);
7070
donationBox = new DonationBox();
7171
handler = new TestHyperCoreHandler(address(donationBox), address(token));
7272

7373
// Make the handler the owner of DonationBox so it can withdraw during sponsorship
7474
vm.prank(donationBox.owner());
7575
donationBox.transferOwnership(address(handler));
7676

77-
// Link token to HyperCore and set token info in the module via delegatecall
78-
// name, weiDecimals=8, szDecimals=8, evmExtraWeiDecimals=0
79-
hyperCore.forceTokenInfo(CORE_INDEX, "MOCK", address(token), 8, 8, 0);
77+
// Set token info in the module via delegatecall
8078
handler.callSetCoreTokenInfo(address(token), CORE_INDEX, true, 1e6, 1e6);
8179

8280
// Ensure recipient has an active HyperCore account for sponsored simple transfer path

test/evm/foundry/local/SponsorredCCTPDstPeriphery.t.sol

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,8 @@ contract SponsoredCCTPDstPeripheryTest is BaseSimulatorTest {
108108
donationBox = new MockDonationBox();
109109
usdc = MockUSDC(0xb88339CB7199b77E23DB6E890353E22632Ba630f);
110110

111-
vm.prank(0x68e37dE8d93d3496ae143F2E900490f6280C57cD);
112-
usdc.transfer(finalRecipient, 1000e6);
113-
114111
// Setup HyperCore precompile mocks using the helper
115-
// setupDefaultHyperCoreMocks(address(usdc), "Mock USDC", 6);
116112
hyperCore.forceAccountActivation(finalRecipient);
117-
// hyperCore.forceTokenInfo(CORE_INDEX, "USDC", address(usdc), 8, 8, 0);
118113

119114
// Deploy periphery
120115
vm.startPrank(admin);
@@ -129,9 +124,8 @@ contract SponsoredCCTPDstPeripheryTest is BaseSimulatorTest {
129124
IHyperCoreFlowExecutor(address(periphery)).setCoreTokenInfo(address(usdc), CORE_INDEX, true, 1e6, 1e6);
130125
vm.stopPrank();
131126

132-
// Transfer USDC to periphery for testing
133-
vm.prank(0x68e37dE8d93d3496ae143F2E900490f6280C57cD);
134-
usdc.transfer(address(periphery), 10000e6);
127+
// Deal USDC to periphery for testing
128+
deal(address(usdc), address(periphery), 10000e6);
135129
}
136130

137131
/// @dev Helper function to create a valid CCTP message

0 commit comments

Comments
 (0)