diff options
Diffstat (limited to 'packages/contracts/src/utils/asset_proxy_utils.ts')
-rw-r--r-- | packages/contracts/src/utils/asset_proxy_utils.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/contracts/src/utils/asset_proxy_utils.ts b/packages/contracts/src/utils/asset_proxy_utils.ts index 63de7252d..529d31cb9 100644 --- a/packages/contracts/src/utils/asset_proxy_utils.ts +++ b/packages/contracts/src/utils/asset_proxy_utils.ts @@ -5,9 +5,7 @@ import ethUtil = require('ethereumjs-util'); import { AssetProxyId } from './types'; export function encodeAssetProxyId(assetProxyId: AssetProxyId): Buffer { - const formattedAssetProxyId = new BN(assetProxyId); - const encodedAssetProxyId = ethUtil.toUnsigned(formattedAssetProxyId); - return encodedAssetProxyId; + return ethUtil.toBuffer(assetProxyId); } export function encodeAddress(address: string): Buffer { |