eos icon indicating copy to clipboard operation
eos copied to clipboard

DAWN-315 ⁃ Transfer Assert Exception

Open michaeljyeates opened this issue 8 years ago • 7 comments

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

michaeljyeates avatar Dec 18 '17 15:12 michaeljyeates

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/

pmesnier avatar Dec 18 '17 16:12 pmesnier

Specifically, are you calling memcpy() in your contract code?

Paul

PaulCalabrese avatar Dec 18 '17 17:12 PaulCalabrese

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/

pmesnier avatar Dec 18 '17 18:12 pmesnier

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

brianjohnson5972 avatar Dec 18 '17 21:12 brianjohnson5972

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.

brianjohnson5972 avatar Dec 18 '17 21:12 brianjohnson5972

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.

brianjohnson5972 avatar Dec 19 '17 15:12 brianjohnson5972

➤ Thomas B. Cox commented:

Coding error detected and resolved.

blockone-syncclient avatar Dec 19 '17 16:12 blockone-syncclient