DAWN-315 ⁃ Transfer Assert Exception
I am using p2p-tn1-access-preview branch and get this error with only one of my accounts (the broken account is my main one with contract code set)
I am running a local walletd and connecting to the testnet directly with this alias alias eosc-testnet='eosc -H testnet1.eos.io -p 80'
https://pastebin.com/7HpY6WLF
Thanks Michael,
This looks like something different that the issues I was addressing with my patch. Do you have the contract code this error occurred with?
On Mon, Dec 18, 2017 at 7:51 AM, michaeljyeates [email protected] wrote:
I am using p2p-tn1-access-preview branch and get this error with only one of my accounts (the broken account is my main one with contract code set)
I am running a local walletd and connecting to the testnet directly with this alias alias eosc-testnet='eosc -H testnet1.eos.io -p 80'
https://pastebin.com/7HpY6WLF
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/969, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2wCR1gBfxAOsmaJDyj93HQLkPpCw0-ks5tBooBgaJpZM4RFq6_ .
--
Phil Mesnier Principal Engineer & Partner OCI | WE ARE SOFTWARE ENGINEERS. tel (314) 579-0066 x225 <(314)%20579-0066> ObjectComputing.com http://objectcomputing.com/
Specifically, are you calling memcpy() in your contract code?
Paul
contract source: https://github.com/michaeljyeates/eosshop
On Mon, Dec 18, 2017 at 9:02 AM, Paul Calabrese [email protected] wrote:
Specifically, are you calling memcpy() in your contract code?
Paul
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/969#issuecomment-352489202, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2wCdOth0j3YiHXKJKmS-1_oDIYQri9ks5tBpq9gaJpZM4RFq6_ .
--
Phil Mesnier Principal Engineer & Partner OCI | WE ARE SOFTWARE ENGINEERS. tel (314) 579-0066 x225 <(314)%20579-0066> ObjectComputing.com http://objectcomputing.com/
Michael,
I get the same results for a transfer from one of my accounts to your shop account. Is there anything special you did to set up this account other than load its code? I will compile your contracts to wasm and see if I can get the same results as you.
Brian
Also found out from Michael that he was using his eos-walletd and eosc compiled with the changes from Phil's patch, but the account had already previously existed.
The problem was here: https://github.com/michaeljyeates/eosshop/commit/d76bd2171f592fcb64f9bfd347c334b9260ef0c7, where code==N(eos) and action=N(transfer), the code was converting the eosio::transfer message to its locally defined transfer message that tried to convert the uint64_t from to a eosio::string.
➤ Thomas B. Cox commented:
Coding error detected and resolved.