Skip to content

Commit 42ed956

Browse files
committed
fix: counter tests
1 parent ce31536 commit 42ed956

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

test/apps/Counter.t.sol

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity ^0.8.21;
33

4+
import "socket-protocol/test/SetupTest.t.sol";
5+
import "socket-protocol/contracts/evmx/interfaces/IFeesManager.sol";
6+
47
import {CounterAppGateway} from "../../src/counter/CounterAppGateway.sol";
58
import {Counter} from "../../src/counter/Counter.sol";
6-
import "socket-protocol/test/SetupTest.t.sol";
79

810
contract CounterTest is AppGatewayBaseSetup {
911
uint256 feesAmount = 0.01 ether;
@@ -18,7 +20,10 @@ contract CounterTest is AppGatewayBaseSetup {
1820
deploy();
1921

2022
counterGateway = new CounterAppGateway(address(addressResolver), feesAmount);
21-
depositNativeAndCredits(arbChainSlug, 1 ether, 0, address(counterGateway));
23+
depositNativeAndCredits(arbChainSlug, 1 ether, 0, address(this));
24+
AppGatewayApprovals[] memory approvals = new AppGatewayApprovals[](1);
25+
approvals[0] = AppGatewayApprovals({appGateway: address(counterGateway), approval: true});
26+
feesManager.approveAppGateways(approvals);
2227
counterId = counterGateway.counter();
2328
contractIds[0] = counterId;
2429
}

0 commit comments

Comments
 (0)