aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-12-19 06:28:20 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-15 02:49:29 +0800
commitb89f9869492e369370bcef593d69e59172f13da4 (patch)
treece521d5714c4898e0801ff5b308b99d441cb3f98
parent285fb3deadd0413bf993557575a3f96a840f0e10 (diff)
downloaddexon-sol-tools-b89f9869492e369370bcef593d69e59172f13da4.tar.gz
dexon-sol-tools-b89f9869492e369370bcef593d69e59172f13da4.tar.zst
dexon-sol-tools-b89f9869492e369370bcef593d69e59172f13da4.zip
Ensure that addresses are lower case
-rw-r--r--packages/utils/src/abi_encoder/evm_data_types/address.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/address.ts b/packages/utils/src/abi_encoder/evm_data_types/address.ts
index 2e3a206c6..3ab823019 100644
--- a/packages/utils/src/abi_encoder/evm_data_types/address.ts
+++ b/packages/utils/src/abi_encoder/evm_data_types/address.ts
@@ -39,7 +39,8 @@ export class AddressDataType extends AbstractBlobDataType {
const valueBufPadded = calldata.popWord();
const valueBuf = valueBufPadded.slice(AddressDataType._DECODED_ADDRESS_OFFSET_IN_BYTES);
const value = ethUtil.bufferToHex(valueBuf);
- return value;
+ const valueLowercase = _.toLower(value);
+ return valueLowercase;
}
public getSignature(): string {