diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 05:52:32 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 04503200e5eafda6617039b113ef26cf48184f62 (patch) | |
tree | 6e853cdd3c563908cf31a88214c499a1a0673842 /packages/utils/src/abi_encoder/calldata | |
parent | 2da7cadefa877ff824da8fbaecd59dbff5028728 (diff) | |
download | dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar.gz dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar.bz2 dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar.lz dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar.xz dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.tar.zst dexon-0x-contracts-04503200e5eafda6617039b113ef26cf48184f62.zip |
Linter / Prettier
Diffstat (limited to 'packages/utils/src/abi_encoder/calldata')
-rw-r--r-- | packages/utils/src/abi_encoder/calldata/blocks/pointer.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/utils/src/abi_encoder/calldata/blocks/pointer.ts b/packages/utils/src/abi_encoder/calldata/blocks/pointer.ts index c706fe908..72d6a3173 100644 --- a/packages/utils/src/abi_encoder/calldata/blocks/pointer.ts +++ b/packages/utils/src/abi_encoder/calldata/blocks/pointer.ts @@ -24,8 +24,9 @@ export class PointerCalldataBlock extends CalldataBlock { } public toBuffer(): Buffer { - const destinationOffset = - !_.isUndefined(this._aliasFor) ? this._aliasFor.getOffsetInBytes() : this._dependency.getOffsetInBytes(); + const destinationOffset = !_.isUndefined(this._aliasFor) + ? this._aliasFor.getOffsetInBytes() + : this._dependency.getOffsetInBytes(); const parentOffset = this._parent.getOffsetInBytes(); const parentHeaderSize = this._parent.getHeaderSizeInBytes(); const pointer: number = destinationOffset - (parentOffset + parentHeaderSize); |