Fixed typo in error message (#574).

This commit is contained in:
Richard Moore 2019-09-06 18:45:56 -04:00
parent 1267eeef4a
commit 8737f12e1b
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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 || {});