aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_encoder/calldata
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2019-02-06 09:28:31 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-02-06 09:30:54 +0800
commit2326dcdb129674677674690b300fec1245149a48 (patch)
treec406f575cd6b111761b3a605b925e2763419a662 /packages/utils/src/abi_encoder/calldata
parentb5eb47f60930d040b94177023cd147834f98db1d (diff)
downloaddexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar.gz
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar.bz2
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar.lz
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar.xz
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.tar.zst
dexon-0x-contracts-2326dcdb129674677674690b300fec1245149a48.zip
Handle NULL input for all data types
Diffstat (limited to 'packages/utils/src/abi_encoder/calldata')
-rw-r--r--packages/utils/src/abi_encoder/calldata/raw_calldata.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/utils/src/abi_encoder/calldata/raw_calldata.ts b/packages/utils/src/abi_encoder/calldata/raw_calldata.ts
index 189841989..dbc9d4942 100644
--- a/packages/utils/src/abi_encoder/calldata/raw_calldata.ts
+++ b/packages/utils/src/abi_encoder/calldata/raw_calldata.ts
@@ -79,4 +79,9 @@ export class RawCalldata {
public getSelector(): string {
return this._selector;
}
+
+ public getSizeInBytes(): number {
+ const sizeInBytes = this._value.byteLength;
+ return sizeInBytes;
+ }
}