From 5fe55638711570dbad23276ee22bef87e85e8e2a Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 18 Nov 2025 11:13:43 -0400 Subject: [PATCH] generate-contracts bugfix --- bin/generate-contracts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/generate-contracts b/bin/generate-contracts index 1052ee6..f346f8c 100755 --- a/bin/generate-contracts +++ b/bin/generate-contracts @@ -6,6 +6,9 @@ case "$CHAIN_ID" in "sepolia") CHAIN_ID=11155111 ;; + "mockchain") + CHAIN_ID=31337 + ;; "mainnet") CHAIN_ID=1 ;; @@ -16,7 +19,7 @@ if [ "$CHAIN_ID" = "31337" ]; then METADATA_PATH=../lmsr-amm/liqp-deployments.json else ABI_PATH=../lmsr-amm/deployment/$CHAIN_ID/v1/out - METADATA_PATH=../lmsr-amm/deployment/11155111/liqp-deployments.json + METADATA_PATH=../lmsr-amm/deployment/liqp-deployments.json fi if [ ! -f "$ABI_PATH/IPartyPool.sol/IPartyPool.json" ]; then @@ -37,4 +40,4 @@ generate IPartyPool generate IPartyInfo cp "$METADATA_PATH" src/contracts/ -echo liqp-deployments.json +echo src/contracts/liqp-deployments.json