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 f0b2961 commit 22a2673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function runMethod(contract: Contract, functionName: string, options: RunOptions
if (options.transaction) { return resolveProperties(tx); }

if (!contract.signer) {
logger.throwError("sending a transaction require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction" })
logger.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction" })
}

return contract.signer.sendTransaction(tx).then((tx) => {
Expand Down Expand Up @@ -572,7 +572,7 @@ export class Contract {

fallback(overrides?: TransactionRequest): Promise<TransactionResponse> {
if (!this.signer) {
logger.throwError("sending a transaction require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" })
logger.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" })
}

let tx: TransactionRequest = shallowCopy(overrides || {});
Expand Down

0 comments on commit 22a2673

Please sign in to comment.