Fixed resovleProperties not resolving properties.
This commit is contained in:
parent
28cd3cace2
commit
edbf8e319c
2
dist/ethers.d.ts.map
vendored
2
dist/ethers.d.ts.map
vendored
File diff suppressed because one or more lines are too long
8
dist/ethers.js
vendored
8
dist/ethers.js
vendored
@ -13312,7 +13312,7 @@ function resolveProperties(object) {
|
||||
}
|
||||
});
|
||||
return Promise.all(promises).then(function () {
|
||||
return object;
|
||||
return result;
|
||||
});
|
||||
}
|
||||
exports.resolveProperties = resolveProperties;
|
||||
@ -15009,7 +15009,6 @@ var Wallet = /** @class */ (function (_super) {
|
||||
return this.provider.getTransactionCount(this.address, blockTag);
|
||||
};
|
||||
Wallet.prototype.sendTransaction = function (transaction) {
|
||||
var _this = this;
|
||||
if (!this.provider) {
|
||||
throw new Error('missing provider');
|
||||
}
|
||||
@ -15032,10 +15031,7 @@ var Wallet = /** @class */ (function (_super) {
|
||||
if (tx.chainId == null) {
|
||||
tx.chainId = this.provider.getNetwork().then(function (network) { return network.chainId; });
|
||||
}
|
||||
return properties_1.resolveProperties(tx).then(function (tx) {
|
||||
console.log('To Sign', tx);
|
||||
return _this.provider.sendTransaction(_this.sign(tx));
|
||||
});
|
||||
return this.provider.sendTransaction(this.sign(tx));
|
||||
};
|
||||
Wallet.prototype.send = function (addressOrName, amountWei, options) {
|
||||
if (!options) {
|
||||
|
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
@ -32,7 +32,7 @@ export function resolveProperties(object: any): Promise<any> {
|
||||
});
|
||||
|
||||
return Promise.all(promises).then(() => {
|
||||
return object;
|
||||
return result;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -127,11 +127,7 @@ export class Wallet extends Signer {
|
||||
tx.chainId = this.provider.getNetwork().then((network) => network.chainId);
|
||||
}
|
||||
|
||||
return resolveProperties(tx).then((tx) => {
|
||||
console.log('To Sign', tx);
|
||||
return this.provider.sendTransaction(this.sign(tx));
|
||||
});
|
||||
|
||||
return this.provider.sendTransaction(this.sign(tx));
|
||||
}
|
||||
|
||||
send(addressOrName: string, amountWei: BigNumberish, options: any): Promise<TransactionResponse> {
|
||||
|
@ -29,7 +29,7 @@ function resolveProperties(object) {
|
||||
}
|
||||
});
|
||||
return Promise.all(promises).then(function () {
|
||||
return object;
|
||||
return result;
|
||||
});
|
||||
}
|
||||
exports.resolveProperties = resolveProperties;
|
||||
|
@ -108,7 +108,6 @@ var Wallet = /** @class */ (function (_super) {
|
||||
return this.provider.getTransactionCount(this.address, blockTag);
|
||||
};
|
||||
Wallet.prototype.sendTransaction = function (transaction) {
|
||||
var _this = this;
|
||||
if (!this.provider) {
|
||||
throw new Error('missing provider');
|
||||
}
|
||||
@ -131,10 +130,7 @@ var Wallet = /** @class */ (function (_super) {
|
||||
if (tx.chainId == null) {
|
||||
tx.chainId = this.provider.getNetwork().then(function (network) { return network.chainId; });
|
||||
}
|
||||
return properties_1.resolveProperties(tx).then(function (tx) {
|
||||
console.log('To Sign', tx);
|
||||
return _this.provider.sendTransaction(_this.sign(tx));
|
||||
});
|
||||
return this.provider.sendTransaction(this.sign(tx));
|
||||
};
|
||||
Wallet.prototype.send = function (addressOrName, amountWei, options) {
|
||||
if (!options) {
|
||||
|
Loading…
Reference in New Issue
Block a user