ever-node icon indicating copy to clipboard operation
ever-node copied to clipboard

Remove truncation of the body of bounced messages.

Open aleksandr-hramcov opened this issue 2 years ago • 8 comments

Problem: Currently the body of bounced messages is truncated to 256 bits. In this case, the first 32 bits store the functionId. This leads to the fact that it is impossible in the onBounce function to get sufficient information about the failed call.

When developing smart contracts, you have to save all the temporary necessary parameters in a mapping with the uint64 nonce key, make the first argument of the called function uint64 nonce, and then send another additional callback if successful for cleaning. This approach cannot always be used and is not without drawbacks, as it can lead to an uncontrolled growth of temporary data and additional bugs.

Offer: Do not truncate the body of bounced message and send all original data.

aleksandr-hramcov avatar Apr 15 '22 14:04 aleksandr-hramcov

Must have feature, will simplify contracts logic much

30mb1 avatar Apr 15 '22 14:04 30mb1

Must needed feature. Pls, just do it!

itgoldio avatar Apr 15 '22 14:04 itgoldio

WIP

Futurizt avatar Apr 15 '22 14:04 Futurizt

Waiting for this feature for a long time!

abionics avatar Apr 15 '22 15:04 abionics

It was proposed long ago - https://forum.freeton.org/t/tip-8-bounce-message-size/10866

cassandrus avatar Apr 17 '22 13:04 cassandrus

i believe this will be very useful and wil finally allow real error handling.

NoamDev avatar Apr 17 '22 14:04 NoamDev

Why this was not solved already? :-)

mnill avatar Apr 18 '22 03:04 mnill

Good idea! That must solve a lot of problems. Signed.

cryshado avatar May 16 '22 17:05 cryshado

Already done

bvscd avatar Nov 07 '23 13:11 bvscd