Closed acoutts closed 5 years ago
Update: This pattern does not work either:
await eos.transaction(['eosio', 'eosio.token'], ({eosio, eosio_token}) =>{
eosio.buyrambytes({
payer: this.props.scatter.identity.accounts[0].name,
receiver: this.props.scatter.identity.accounts[0].name,
bytes: 50
})
eosio_token.transfer({
from: this.props.scatter.identity.accounts[0].name,
to: 'gi4dcnbug4ge',
quantity: '0.0050 EOS',
memo: 'Test'
})
})
This pattern works for two actions on the same contract, but I still can't seem to trigger two actions on two contracts:
await eos.transaction(['eosio'], ({eosio}) => {
eosio.buyrambytes(this.props.scatter.identity.accounts[0].name, this.props.scatter.identity.accounts[0].name, 50)
eosio.buyrambytes(this.props.scatter.identity.accounts[0].name, this.props.scatter.identity.accounts[0].name, 503)
})
This was likely related to an issue with multi-contract batch transactions. Should be fixed now.
fefc86f1195045c89230ebcbc09d9a4bed2e9780
Hello- I am attempting to submit multiple EOS actions in one transaction, but it doesn't appear to work.
When I comment out either of the
tr.[action]
calls above, the code works:When I try to use both actions in one transaction, Scatter never pops up and even with verbose mode on I can't find any feedback to give me some clues as to what the issue is.
Here is the console output that comes up when I attempt to execute the code above with both actions in the transaction:
If I comment out one of the transaction pieces:
The Scatter window pops up as expected:
..and the transaction works. Here is the console output:
I am attempting this referencing the EOSJS documentation where they show this example:
Any help / guidance greatly appreciated. Thank you!