Skip to content

Commit

Permalink
Fixed typo in error message (#574).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Sep 6, 2019
1 parent 1267eee commit 8737f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src.ts/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function runMethod(contract: Contract, functionName: string, estimateOnly: boole
}

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
Expand Down Expand Up @@ -478,7 +478,7 @@ export class Contract {

fallback(overrides?: TransactionRequest): Promise<TransactionResponse> {
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 || {});
Expand Down

0 comments on commit 8737f12

Please sign in to comment.