From 81e41102d00b3c1f124f6add8cafc9f6baf41d9d Mon Sep 17 00:00:00 2001 From: Rodrigo Ariza <15104916+RodrigoAD@users.noreply.github.com> Date: Fri, 14 Jan 2022 17:06:55 +0100 Subject: [PATCH] fixed version to 2 (#109) --- .../src/commands/contracts/ocr2/offchainConfig/begin.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gauntlet/packages/gauntlet-solana-contracts/src/commands/contracts/ocr2/offchainConfig/begin.ts b/gauntlet/packages/gauntlet-solana-contracts/src/commands/contracts/ocr2/offchainConfig/begin.ts index 8bf6aad55..96c7d3450 100644 --- a/gauntlet/packages/gauntlet-solana-contracts/src/commands/contracts/ocr2/offchainConfig/begin.ts +++ b/gauntlet/packages/gauntlet-solana-contracts/src/commands/contracts/ocr2/offchainConfig/begin.ts @@ -26,10 +26,11 @@ export default class BeginOffchainConfig extends SolanaCommand { const state = new PublicKey(this.flags.state) const owner = this.wallet.payer + const version = new BN(2) - await prompt(`Begin setting Offchain config version ${this.flags.version}?`) + await prompt(`Begin setting Offchain config version ${version.toString()}?`) - const tx = await program.rpc.beginOffchainConfig(new BN(this.flags.version), { + const tx = await program.rpc.beginOffchainConfig(version, { accounts: { state: state, authority: owner.publicKey,