fix(flow): add transaction instructions field
This commit is contained in:
@ -92,8 +92,9 @@ declare module '@solana/web3.js' {
|
|||||||
|
|
||||||
declare export class TransactionInstruction {
|
declare export class TransactionInstruction {
|
||||||
fee: number;
|
fee: number;
|
||||||
|
keys: Array<PublicKey>;
|
||||||
constructor(opts?: TransactionInstructionCtorFields): TransactionInstruction;
|
programId: PublicKey;
|
||||||
|
userdata: Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare type TransactionCtorFields = {|
|
declare type TransactionCtorFields = {|
|
||||||
@ -103,6 +104,7 @@ declare module '@solana/web3.js' {
|
|||||||
declare export class Transaction {
|
declare export class Transaction {
|
||||||
signature: ?Buffer;
|
signature: ?Buffer;
|
||||||
fee: number;
|
fee: number;
|
||||||
|
instructions: Array<TransactionInstruction>;
|
||||||
|
|
||||||
constructor(opts?: TransactionCtorFields): Transaction;
|
constructor(opts?: TransactionCtorFields): Transaction;
|
||||||
add(item: TransactionInstruction | TransactionInstructionCtorFields): Transaction;
|
add(item: TransactionInstruction | TransactionInstructionCtorFields): Transaction;
|
||||||
|
Reference in New Issue
Block a user