wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
44 stars 23 forks source link

Question: How to execute actions without data input ? #12

Closed gaboesquivel closed 3 years ago

gaboesquivel commented 3 years ago

At the moment Action.from expects data as Struct instance and it fails if undefined or empty.

How to execute actions that take no input ?

image

jnordberg commented 3 years ago

data = Bytes.from(0) should do it

gaboesquivel commented 3 years ago

Thanks Bytes.from(new Uint8Array()) worked