Skip to content

Commit 20ab2ed

Browse files
committed
fix instantiate due to min pub rand addition
1 parent cb3f9be commit 20ab2ed

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d60fe6249d6e10d879dc3df07e5e68a59702b095 finality.wasm
1+
be6d95a51d228e71f5dcd194b44abd1de0a4970c finality.wasm
3.42 KB
Binary file not shown.

deployments/rollup-bsn-demo/demo.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sleep 10 # wait for containers to be ready (cov emulator takes a while to start)
66

77
BBN_CHAIN_ID="chain-test"
88
CONSUMER_ID="consumer-id"
9+
MIN_PUB_RAND=100 # Minimum number of public randomness commitments required
910

1011
# 🔥 GAS TRACKING INFRASTRUCTURE
1112

@@ -95,7 +96,8 @@ measure_gas "$STORE_TX_HASH" "Store Contract WASM"
9596
echo " ✅ Contract WASM stored successfully!"
9697

9798
echo " → Instantiating contract..."
98-
INSTANTIATE_MSG_JSON="{\"admin\":\"$admin\",\"bsn_id\":\"$CONSUMER_ID\"}"
99+
echo " → Using min_pub_rand=$MIN_PUB_RAND (minimum randomness commitments required)"
100+
INSTANTIATE_MSG_JSON="{\"admin\":\"$admin\",\"bsn_id\":\"$CONSUMER_ID\",\"min_pub_rand\":$MIN_PUB_RAND}"
99101
INSTANTIATE_CMD="/bin/babylond --home /babylondhome tx wasm instantiate 1 '$INSTANTIATE_MSG_JSON' --chain-id $BBN_CHAIN_ID --keyring-backend test --gas auto --gas-adjustment 1.5 --gas-prices 1ubbn --label 'finality' --admin $admin --from test-spending-key --output json -y"
100102
echo " → Command: $INSTANTIATE_CMD"
101103
INSTANTIATE_OUTPUT=$(docker exec babylondnode0 /bin/sh -c "$INSTANTIATE_CMD")

0 commit comments

Comments
 (0)