Skip to content

Commit

Permalink
fix: blockIdentifier null on call from constructed function
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Dec 8, 2022
1 parent 555a9a3 commit c88fbf0
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 @@ -234,7 +234,7 @@ export class Contract implements ContractInterface {
options: CallOptions = {}
): Promise<Result> {
// default value also for null
const blockIdentifier = options?.blockIdentifier;
const blockIdentifier = options?.blockIdentifier || undefined;

// ensure contract is connected
assert(this.address !== null, 'contract is not connected to an address');
Expand Down

0 comments on commit c88fbf0

Please sign in to comment.