@wharfkit/contract
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -220,3 +220,3 @@ import { ABI, APIClient, API, ABIDef, NameType, Name, PermissionLevelType, BytesType, ABISerializableObject, Action, Blob } from '@wharfkit/antelope'; | ||
action(name: any, data: ActionDataType, options?: ActionOptions): Action; | ||
readonly(name: any, data: ActionDataType): Promise<any>; | ||
readonly(name: any, data?: ActionDataType): Promise<any>; | ||
actions(actions: ActionsArgs[], options?: ActionOptions): Action[]; | ||
@@ -223,0 +223,0 @@ ricardian(name: NameType): string; |
@@ -393,2 +393,5 @@ 'use strict'; | ||
return tslib.__awaiter(this, void 0, void 0, function* () { | ||
if (!data) { | ||
data = {}; | ||
} | ||
const action = this.action(name, data); | ||
@@ -395,0 +398,0 @@ action.authorization = []; |
@@ -366,2 +366,5 @@ import { isInstanceOf, UInt128, UInt64, Float64, Checksum256, Checksum160, Name, Serializer, ABI, Blob, PermissionLevel, Action, Transaction } from '@wharfkit/antelope'; | ||
async readonly(name, data) { | ||
if (!data) { | ||
data = {}; | ||
} | ||
const action = this.action(name, data); | ||
@@ -368,0 +371,0 @@ action.authorization = []; |
{ | ||
"name": "@wharfkit/contract", | ||
"description": "ContractKit for Wharf", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"homepage": "https://github.com/wharfkit/contract", | ||
@@ -6,0 +6,0 @@ "license": "BSD-3-Clause", |
@@ -119,3 +119,6 @@ import { | ||
public async readonly(name, data: ActionDataType): Promise<any> { | ||
public async readonly(name, data?: ActionDataType): Promise<any> { | ||
if (!data) { | ||
data = {} | ||
} | ||
// Generate action | ||
@@ -122,0 +125,0 @@ const action = this.action(name, data) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
106733
1918