From 97ae13d9ad5dfafb433d0e2dcaf64e5beecd9d9c Mon Sep 17 00:00:00 2001 From: Scott Piriou <30843220+pscott@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:59:58 +0100 Subject: [PATCH] use choices in herodotus script --- scripts/herodotus-interaction-demo.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/herodotus-interaction-demo.ts b/scripts/herodotus-interaction-demo.ts index 36a40997..1616e684 100644 --- a/scripts/herodotus-interaction-demo.ts +++ b/scripts/herodotus-interaction-demo.ts @@ -25,6 +25,7 @@ const accountPk = process.env.PK || ''; const starknetNetworkUrl = process.env.STARKNET_NETWORK_URL || ''; const ethNetworkUrl = process.env.ETH_NETWORK_URL || ''; const herodotusApiKey = process.env.HERODOTUS_API_KEY || ''; +const choices = '0x3'; async function main() { const provider = new RpcProvider({ nodeUrl: starknetNetworkUrl }); @@ -87,6 +88,7 @@ async function main() { selector: '0x1bfd596ae442867ef71ca523061610682af8b00fc2738329422f4ad8d220b81', data: CallData.compile({ author: utils.starknetEnums.getUserAddressEnum('ETHEREUM', voterAddress), + choices: choices, metadataUri: ['0x1', '0x2', '0x3', '0x4'], executionStrategy: { address: '0x0000000000000000000000000000000000005678',