Skip to content

Commit

Permalink
use choices in herodotus script
Browse files Browse the repository at this point in the history
  • Loading branch information
pscott committed Nov 26, 2024
1 parent 6fa6550 commit 97ae13d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/herodotus-interaction-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 97ae13d

Please sign in to comment.