File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: UNLICENSED
22pragma solidity ^ 0.8.21 ;
33
4+ import "socket-protocol/test/SetupTest.t.sol " ;
5+ import "socket-protocol/contracts/evmx/interfaces/IFeesManager.sol " ;
6+
47import {CounterAppGateway} from "../../src/counter/CounterAppGateway.sol " ;
58import {Counter} from "../../src/counter/Counter.sol " ;
6- import "socket-protocol/test/SetupTest.t.sol " ;
79
810contract 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 }
You can’t perform that action at this time.
0 commit comments