fix: rename userdata to data

This commit is contained in:
Michael Vines
2019-03-14 13:27:47 -07:00
parent 5d40f359c2
commit 6fe0e08a80
9 changed files with 144 additions and 144 deletions

View File

@@ -40,7 +40,7 @@ declare module '@solana/web3.js' {
executable: boolean,
owner: PublicKey,
lamports: number,
userdata: Buffer,
data: Buffer,
};
declare type AccountChangeCallback = (accountInfo: AccountInfo) => void;
@@ -104,13 +104,13 @@ declare module '@solana/web3.js' {
declare type TransactionInstructionCtorFields = {|
keys: ?Array<PublicKey>,
programId?: PublicKey,
userdata?: Buffer,
data?: Buffer,
|};
declare export class TransactionInstruction {
keys: Array<PublicKey>;
programId: PublicKey;
userdata: Buffer;
data: Buffer;
}
declare type SignaturePubkeyPair = {|