This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally from https://raw.githubusercontent.com/EOSIO/eosjs/v16.0.9/src/format.js | |
// eosjs2 does not have this function | |
import Long from 'long'; | |
function bytesToHex(bytes) { | |
let leHex = ''; | |
for (const b of bytes) { | |
const n = Number(b).toString(16); | |
leHex += (n.length === 1 ? '0' : '') + n; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"structs": [{ | |
"name": "withdraw", | |
"base": "", | |
"fields": [ | |
{"name":"user", "type":"account_name"} | |
] | |
},{ | |
"name": "balance", | |
"base": "", |