Skip to content

Commit

Permalink
pay contract: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewliu08 committed Nov 1, 2024
1 parent 909dcb8 commit 28e564b
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 72 deletions.
5 changes: 4 additions & 1 deletion packages/contract/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build clean full test coverage codegen deploy
.PHONY: build clean full test paytest coverage codegen deploy

build:
forge install
Expand All @@ -18,6 +18,9 @@ test:
forge test -vvv --fork-url "$(BASE_MAINNET_RPC)" --fork-block-number 14513720 --match-path "test/uniswap/*" --no-match-path "test/uniswap/Quoter.t.sol"
forge test -vvv --fork-url "$(BASE_MAINNET_RPC)" --fork-block-number 15950101 --match-path "test/uniswap/Quoter.t.sol"

paytest:
forge test -vvv --match-path "test/pay/*"

coverage:
$(eval BASE_MAINNET_RPC ?= $(or $(BASE_MAINNET_RPC),https://base-rpc.publicnode.com)) # Use environment variable if set, otherwise use default
@echo Running tests with RPC: $(BASE_MAINNET_RPC)
Expand Down
7 changes: 6 additions & 1 deletion packages/contract/src/pay/DaimoPayAxelarBridger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ contract DaimoPayAxelarBridger is
function getBridgeTokenIn(
uint256 toChainId,
TokenAmount[] memory bridgeTokenOutOptions
) public view returns (address bridgeTokenIn, uint256 inAmount) {}
) public view returns (address bridgeTokenIn, uint256 inAmount) {
(bridgeTokenIn, inAmount, , , , , , ) = _getBridgeData(
toChainId,
bridgeTokenOutOptions
);
}

/// Initiate a bridge to a destination chain using Axelar Protocol.
function sendToChain(
Expand Down
Loading

0 comments on commit 28e564b

Please sign in to comment.