2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Fix for when blockTag is specified as a null equivalent value in contract overrides (#329).

This commit is contained in:
Richard Moore 2018-11-08 16:01:48 -05:00
parent 3a19f43844
commit 28a52cd485
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -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]) {