Skip to content

Commit

Permalink
fix: make Account2FA.signAndSendTransaction public
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Sep 30, 2022
1 parent 6a35ac6 commit 115bd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/near-api-js/src/account_multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class Account2FA extends AccountMultisig {
* Sign a transaction to preform a list of actions and broadcast it using the RPC API.
* @see {@link providers/json-rpc-provider!JsonRpcProvider#sendTransaction | JsonRpcProvider.sendTransaction}
*/
protected async signAndSendTransaction({ receiverId, actions }: SignAndSendTransactionOptions): Promise<FinalExecutionOutcome> {
async signAndSendTransaction({ receiverId, actions }: SignAndSendTransactionOptions): Promise<FinalExecutionOutcome> {
await super.signAndSendTransaction({ receiverId, actions });
// TODO: Should following override onRequestResult in superclass instead of doing custom signAndSendTransaction?
await this.sendCode();
Expand Down

0 comments on commit 115bd7b

Please sign in to comment.