Closed MarcelBlockchain closed 6 years ago
I'd check out this instead as it's far more succinct and this code has fallen out of sync with Scatter's methodologies.
https://github.com/GetScatter/ScatterDesktop/blob/master/src/plugins/defaults/eos.js#L228
The payload itself can be just
{
buf:{
data:[] // An array of bytes that encapsulates the entire transaction
}
}
Of for arbitrary data
{
data:[] // An array of bytes or a hash string
}
What is an example
payload
of the following snippet? I tried to test it in dev mode, but encountered a problem as described here #157Would answer my question at https://github.com/EOSIO/eosjs/issues/306 as well.
https://github.com/GetScatter/ScatterWebExtension/blob/master/src/plugins/defaults/eos.js#L118
bgContext
andcallback
are interesting as well