Skip to content

Commit

Permalink
fix: account detection
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Mar 11, 2022
1 parent 696116d commit b3b3ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export class Contract implements ContractInterface {
calldata,
entrypoint: method,
};
if (this.providerOrAccount instanceof AccountInterface) {
if ('execute' in this.providerOrAccount) {
return this.providerOrAccount.execute(invocation);
}
return this.providerOrAccount.invokeFunction({
Expand Down

0 comments on commit b3b3ba7

Please sign in to comment.