Skip to content

Commit

Permalink
DEBUG: show cast send output in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdac committed Feb 4, 2025
1 parent 36436f0 commit 604a8b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion op-e2e/celo/tests/weth_bridge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ set -x
ACC_ADDR=$(cast wallet address $ACC_PRIVKEY)

# Deploy WETH
L1_WETH_OUTPUT=$(
forge create --private-key=$ACC_PRIVKEY --root $CONTRACTS_DIR $CONTRACTS_DIR/src/universal/WETH98.sol:WETH98 --json --rpc-url $ETH_RPC_URL_L1
)
echo $L1_WETH_OUTPUT
L1_WETH=$(
ETH_RPC_URL=$ETH_RPC_URL_L1 forge create --private-key=$ACC_PRIVKEY --root $CONTRACTS_DIR $CONTRACTS_DIR/src/universal/WETH98.sol:WETH98 --json | jq .deployedTo -r
echo $L1_WETH_OUTPUT | jq .deployedTo -r
)

# create ERC20 token on L2
Expand Down
5 changes: 3 additions & 2 deletions op-e2e/celo/tests/weth_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function wrappedETHBridgeConcurrent(
// so don't use the provided funded account in the context
// but hardcode the privkey here as well
ACC_PRIVKEY:
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
"ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
CONTRACTS_DIR: contractsPath,
};

Expand All @@ -40,7 +40,8 @@ export async function wrappedETHBridgeConcurrent(
});

const process = devnetUp.spawn();
const { code, stderr } = await process.output();
const { code, stdout, stderr } = await process.output();
console.log("output from script", new TextDecoder().decode(stdout));

if (code !== 0) {
const errorOutput = new TextDecoder().decode(stderr);
Expand Down

0 comments on commit 604a8b7

Please sign in to comment.