Skip to content

Commit

Permalink
Fix for when blockTag is specified as a null equivalent value in cont…
Browse files Browse the repository at this point in the history
…ract overrides (#329).
  • Loading branch information
ricmoo committed Nov 8, 2018
1 parent 3a19f43 commit 28a52cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src.ts/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ function runMethod(contract: Contract, functionName: string, estimateOnly: boole

if (tx.blockTag != null) {
blockTag = tx.blockTag;
delete tx.blockTag;
}

delete tx.blockTag;

// Check for unexpected keys (e.g. using "gas" instead of "gasLimit")
for (let key in tx) {
if (!allowedTransactionKeys[key]) {
Expand Down

0 comments on commit 28a52cd

Please sign in to comment.