Fixed JsonRpcSigner for promises and made address optional again.
This commit is contained in:
parent
98ea4b59a0
commit
0b35f1959a
2
dist/ethers.d.ts
vendored
2
dist/ethers.d.ts
vendored
@ -501,7 +501,7 @@ declare module 'ethers/providers/json-rpc-provider' {
|
||||
export class JsonRpcProvider extends Provider {
|
||||
readonly connection: ConnectionInfo;
|
||||
constructor(url?: ConnectionInfo | string, network?: Networkish);
|
||||
getSigner(address: string): JsonRpcSigner;
|
||||
getSigner(address?: string): JsonRpcSigner;
|
||||
listAccounts(): Promise<Array<string>>;
|
||||
send(method: string, params: any): Promise<any>;
|
||||
perform(method: string, params: any): Promise<any>;
|
||||
|
2
dist/ethers.js
vendored
2
dist/ethers.js
vendored
@ -10187,7 +10187,7 @@ var JsonRpcSigner = /** @class */ (function (_super) {
|
||||
});
|
||||
}
|
||||
return properties_1.resolveProperties(tx).then(function (tx) {
|
||||
return _this.provider.send('eth_sendTransaction', [transaction]);
|
||||
return _this.provider.send('eth_sendTransaction', [tx]);
|
||||
});
|
||||
};
|
||||
JsonRpcSigner.prototype.signMessage = function (message) {
|
||||
|
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
@ -119,7 +119,7 @@ export class JsonRpcSigner extends Signer {
|
||||
}
|
||||
|
||||
return resolveProperties(tx).then((tx) => {
|
||||
return this.provider.send('eth_sendTransaction', [ transaction ]);
|
||||
return this.provider.send('eth_sendTransaction', [ tx ]);
|
||||
});
|
||||
}
|
||||
|
||||
@ -190,7 +190,7 @@ export class JsonRpcProvider extends Provider {
|
||||
|
||||
}
|
||||
|
||||
getSigner(address: string): JsonRpcSigner {
|
||||
getSigner(address?: string): JsonRpcSigner {
|
||||
return new JsonRpcSigner(this, address);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user