Populate from in estimateGas for determining gas limit.
This commit is contained in:
parent
18aa885aef
commit
1d2fe8993b
1
dist/ethers.js
vendored
1
dist/ethers.js
vendored
@ -15181,6 +15181,7 @@ var Wallet = /** @class */ (function (_super) {
|
|||||||
tx.to = this.provider.resolveName(tx.to);
|
tx.to = this.provider.resolveName(tx.to);
|
||||||
}
|
}
|
||||||
if (tx.gasLimit == null) {
|
if (tx.gasLimit == null) {
|
||||||
|
tx.from = this.getAddress();
|
||||||
tx.gasLimit = this.provider.estimateGas(tx);
|
tx.gasLimit = this.provider.estimateGas(tx);
|
||||||
}
|
}
|
||||||
if (tx.gasPrice == null) {
|
if (tx.gasPrice == null) {
|
||||||
|
2
dist/ethers.min.js
vendored
2
dist/ethers.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.min.js.map
vendored
2
dist/ethers.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -104,6 +104,7 @@ export class Wallet extends Signer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tx.gasLimit == null) {
|
if (tx.gasLimit == null) {
|
||||||
|
tx.from = this.getAddress();
|
||||||
tx.gasLimit = this.provider.estimateGas(tx);
|
tx.gasLimit = this.provider.estimateGas(tx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@ var Wallet = /** @class */ (function (_super) {
|
|||||||
tx.to = this.provider.resolveName(tx.to);
|
tx.to = this.provider.resolveName(tx.to);
|
||||||
}
|
}
|
||||||
if (tx.gasLimit == null) {
|
if (tx.gasLimit == null) {
|
||||||
|
tx.from = this.getAddress();
|
||||||
tx.gasLimit = this.provider.estimateGas(tx);
|
tx.gasLimit = this.provider.estimateGas(tx);
|
||||||
}
|
}
|
||||||
if (tx.gasPrice == null) {
|
if (tx.gasPrice == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user