Skip to content

Commit b7726c2

Browse files
committed
fix(flow): correct newAccount prototype
1 parent 177a7c6 commit b7726c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module.flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ declare module '@solana/web3.js' {
134134
): Promise<TokenAndPublicKey>;
135135

136136
constructor(connection: Connection, token: PublicKey) : Token;
137-
newAccount(owner: Account, source: null | PublicKey): Promise<PublicKey>;
137+
newAccount(owner: Account, source?: PublicKey): Promise<PublicKey>;
138138
tokenInfo(): Promise<TokenInfo>;
139139
accountInfo(account: PublicKey): Promise<TokenAccountInfo>;
140140
transfer(

0 commit comments

Comments
 (0)