@wharfkit/antelope
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "@wharfkit/antelope", | ||
"description": "Library for working with Antelope powered blockchains.", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"homepage": "https://github.com/wharfkit/antelope", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause-No-Military-License", |
@@ -10,2 +10,3 @@ import { | ||
import {isInstanceOf} from '../utils' | ||
import {ABI} from './abi' | ||
@@ -53,4 +54,8 @@ export interface StructConstructor extends ABISerializableConstructor { | ||
for (const field of self.structFields) { | ||
const isOptional = | ||
typeof field.type === 'string' | ||
? new ABI.ResolvedType(String(field.type)).isOptional | ||
: field.optional | ||
const value = object[field.name] | ||
if (field.optional && !value) continue | ||
if (isOptional && !value) continue | ||
this[field.name] = value | ||
@@ -57,0 +62,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2029538
34936