aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/test
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-11-28 08:20:56 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-11-29 08:38:11 +0800
commitf196dc9e35d12aad281142371af4d2c32db1fd60 (patch)
tree9aafca26c7abd3ea395cf8943aca7eb7b5707c64 /packages/utils/test
parente7bdf4717da9d1fd50cda3dba4e9549dfbc337f7 (diff)
downloaddexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar.gz
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar.bz2
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar.lz
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar.xz
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.tar.zst
dexon-sol-tools-f196dc9e35d12aad281142371af4d2c32db1fd60.zip
Use ethUti.isValidAddress in encoder
Diffstat (limited to 'packages/utils/test')
-rw-r--r--packages/utils/test/abi_encoder/evm_data_types_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils/test/abi_encoder/evm_data_types_test.ts b/packages/utils/test/abi_encoder/evm_data_types_test.ts
index b99500265..11cebda55 100644
--- a/packages/utils/test/abi_encoder/evm_data_types_test.ts
+++ b/packages/utils/test/abi_encoder/evm_data_types_test.ts
@@ -387,7 +387,7 @@ describe('ABI Encoder: EVM Data Type Encoding/Decoding', () => {
// Encode Args and validate result
expect(() => {
dataType.encode(args);
- }).to.throw(AbiEncoder.Address.ERROR_MESSAGE_ADDRESS_MUST_START_WITH_0X);
+ }).to.throw(`Invalid address: '${args}'`);
});
it('Invalid Address - input is not 20 bytes', async () => {
// Create DataType object
@@ -398,7 +398,7 @@ describe('ABI Encoder: EVM Data Type Encoding/Decoding', () => {
// Encode Args and validate result
expect(() => {
dataType.encode(args);
- }).to.throw(AbiEncoder.Address.ERROR_MESSAGE_ADDRESS_MUST_BE_20_BYTES);
+ }).to.throw(`Invalid address: '${args}'`);
});
});