Fixed typo in error message (#574).
This commit is contained in:
parent
1267eeef4a
commit
8737f12e1b
@ -262,7 +262,7 @@ function runMethod(contract: Contract, functionName: string, estimateOnly: boole
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!contract.signer) {
|
if (!contract.signer) {
|
||||||
errors.throwError('sending a transaction require a signer', errors.UNSUPPORTED_OPERATION, { operation: 'sendTransaction' })
|
errors.throwError('sending a transaction requires a signer', errors.UNSUPPORTED_OPERATION, { operation: 'sendTransaction' })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure they aren't overriding something they shouldn't
|
// Make sure they aren't overriding something they shouldn't
|
||||||
@ -478,7 +478,7 @@ export class Contract {
|
|||||||
|
|
||||||
fallback(overrides?: TransactionRequest): Promise<TransactionResponse> {
|
fallback(overrides?: TransactionRequest): Promise<TransactionResponse> {
|
||||||
if (!this.signer) {
|
if (!this.signer) {
|
||||||
errors.throwError('sending a transaction require a signer', errors.UNSUPPORTED_OPERATION, { operation: 'sendTransaction(fallback)' })
|
errors.throwError('sending a transaction requires a signer', errors.UNSUPPORTED_OPERATION, { operation: 'sendTransaction(fallback)' })
|
||||||
}
|
}
|
||||||
|
|
||||||
var tx: TransactionRequest = shallowCopy(overrides || {});
|
var tx: TransactionRequest = shallowCopy(overrides || {});
|
||||||
|
Loading…
Reference in New Issue
Block a user