Skip to content

Instantly share code, notes, and snippets.

@iwasaki-kenta
Last active July 17, 2019 03:58
Show Gist options
  • Save iwasaki-kenta/67b3509aec0be6fbca35956194d11053 to your computer and use it in GitHub Desktop.
Save iwasaki-kenta/67b3509aec0be6fbca35956194d11053 to your computer and use it in GitHub Desktop.
await contract.call(...[
{type: "uint32", value: 32}, // Pass in an unsigned little-endian 32-bit integer.
{type: "int64", value: JSBI.BigInt(-100000000)}, // Pass in a signed little-endian 64-bit integer.
{type: "string", value: "Another string"}, // Pass in a string.
{type: "raw", value: "hexadecimal_string_here_to_be_decoded_into_raw_bytes"}] // Pass in raw bytes hex-encoded.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment