Skip to content

Commit

Permalink
fixed version to 2 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoAD authored Jan 14, 2022
1 parent 6ca7765 commit 81e4110
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 81e4110

Please sign in to comment.