Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 62cb124

Browse files
authored
Merge pull request #3740 from djosey/patch-1
error message edit
2 parents 9eede51 + b3bd22a commit 62cb124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,4 +299,5 @@ Released with 1.0.0-beta.37 code base.
299299

300300
### Fixed
301301

302-
- Fixed decoding bytes and string parameters for logs emitted with solc 0.4.x (#3724, #3738)
302+
- Fixed decoding bytes and string parameters for logs emitted with solc 0.4.x (#3724, #3738)
303+
- Grammar changes to inputAddressFormatter error message

packages/web3-core-helpers/src/formatters.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ var inputAddressFormatter = function (address) {
472472
} else if (utils.isAddress(address)) {
473473
return '0x' + address.toLowerCase().replace('0x', '');
474474
}
475-
throw new Error('Provided address "' + address + '" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can\'t be converted.');
475+
throw new Error(`Provided address ${address} is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.`);
476476
};
477477

478478

@@ -508,4 +508,3 @@ module.exports = {
508508
outputPostFormatter: outputPostFormatter,
509509
outputSyncingFormatter: outputSyncingFormatter
510510
};
511-

0 commit comments

Comments
 (0)