Commit fdcd8ffd authored by Inphi's avatar Inphi Committed by GitHub

ctb: Fix lpp-estimate script (#9384)

parent 30282c2d
...@@ -16,7 +16,9 @@ anvil --base-fee $BASE_FEE & ...@@ -16,7 +16,9 @@ anvil --base-fee $BASE_FEE &
ANVIL_PID=$! ANVIL_PID=$!
# Deploy the `PreimageOracle` contract to anvil. # Deploy the `PreimageOracle` contract to anvil.
PO_ADDR=$(forge create PreimageOracle --private-key $PRIVATE_KEY --rpc-url $ETH_RPC_URL --json | jq -r '.deployedTo') PO_MIN_PROPOSAL_SIZE=10000
PO_CHALLENGE_PERIOD=120
PO_ADDR=$(forge create PreimageOracle --private-key $PRIVATE_KEY --rpc-url $ETH_RPC_URL --json --constructor-args "${PO_MIN_PROPOSAL_SIZE}" "${PO_CHALLENGE_PERIOD}" 0 | jq -r '.deployedTo')
# Capture the balance of the submitter prior to submitting all leaves. # Capture the balance of the submitter prior to submitting all leaves.
BALANCE_BEFORE=$(cast balance --rpc-url http://localhost:8545 "$PUB_KEY") BALANCE_BEFORE=$(cast balance --rpc-url http://localhost:8545 "$PUB_KEY")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment