aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_encoder/calldata/blocks/set.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/utils/src/abi_encoder/calldata/blocks/set.ts')
-rw-r--r--packages/utils/src/abi_encoder/calldata/blocks/set.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils/src/abi_encoder/calldata/blocks/set.ts b/packages/utils/src/abi_encoder/calldata/blocks/set.ts
index e4de22c5c..81455b364 100644
--- a/packages/utils/src/abi_encoder/calldata/blocks/set.ts
+++ b/packages/utils/src/abi_encoder/calldata/blocks/set.ts
@@ -14,7 +14,7 @@ export class Set extends CalldataBlock {
public getRawData(): Buffer {
const rawDataComponents: Buffer[] = [];
- if (this._header) {
+ if (!_.isUndefined(this._header)) {
rawDataComponents.push(this._header);
}
_.each(this._members, (member: CalldataBlock) => {
@@ -35,7 +35,7 @@ export class Set extends CalldataBlock {
}
public toBuffer(): Buffer {
- if (this._header) {
+ if (!_.isUndefined(this._header)) {
return this._header;
}
return new Buffer('');