aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-04-14 06:23:11 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:56:18 +0800
commit6d6179fb2ca02a822165abccbcd3585f49ef2187 (patch)
tree0ec6aae6f70aa0a59e8e10c87f1251d9ebe803de /packages
parent80d06d358a171daf7a260656c33d08fac1868382 (diff)
downloaddexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar.gz
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar.bz2
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar.lz
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar.xz
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.tar.zst
dexon-sol-tools-6d6179fb2ca02a822165abccbcd3585f49ef2187.zip
toUnsigned -> toBuffer in assetProxyUtils
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/src/utils/asset_proxy_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/asset_proxy_utils.ts b/packages/contracts/src/utils/asset_proxy_utils.ts
index 529d31cb9..8c14b2847 100644
--- a/packages/contracts/src/utils/asset_proxy_utils.ts
+++ b/packages/contracts/src/utils/asset_proxy_utils.ts
@@ -18,7 +18,7 @@ export function encodeAddress(address: string): Buffer {
export function encodeUint256(value: BigNumber): Buffer {
const formattedValue = new BN(value.toString(10));
- const encodedValue = ethUtil.toUnsigned(formattedValue);
+ const encodedValue = ethUtil.toBuffer(formattedValue);
return encodedValue;
}