From 5662808b4c1197fb146350b0164122fb8348dbc4 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Fri, 1 May 2020 23:35:03 +0800 Subject: [PATCH] fix: isAccountWritable takes a number --- web3.js/module.d.ts | 2 +- web3.js/module.flow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web3.js/module.d.ts b/web3.js/module.d.ts index 56ef20ab9b..3a12dff437 100644 --- a/web3.js/module.d.ts +++ b/web3.js/module.d.ts @@ -379,7 +379,7 @@ declare module '@solana/web3.js' { instructions: CompiledInstruction[]; constructor(args: MessageArgs); - isAccountWritable(account: PublicKey): boolean; + isAccountWritable(index: number): boolean; serialize(): Buffer; } diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 156abcbbc9..d06b7646e8 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -389,7 +389,7 @@ declare module '@solana/web3.js' { instructions: CompiledInstruction[]; constructor(args: MessageArgs): Message; - isAccountWritable(account: PublicKey): boolean; + isAccountWritable(index: number): boolean; serialize(): Buffer; }