Skip to content

Commit 34db683

Browse files
committed
fix: add invoke warning
1 parent b7291e6 commit 34db683

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/account/default.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export class Account extends Provider implements AccountInterface {
3636
const { result } = await this.callContract({
3737
contractAddress: this.address,
3838
entrypoint: 'get_nonce',
39-
calldata: [],
4039
});
4140
return toHex(toBN(result[0]));
4241
}

src/contract/default.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ export class Contract implements ContractInterface {
578578
});
579579
}
580580

581-
// TODO: throw warning
581+
console.warn(`Invoking ${method} without an account. This will not work on a public node.`);
582+
582583
return this.providerOrAccount.invokeFunction({
583584
...invocation,
584585
signature: options.signature || [],

0 commit comments

Comments
 (0)