#Is it possible to restore a temporary data entry?

4 messages · Page 1 of 1 (latest)

ruby thunder
#

While testing some things, I tried to restore a temporary data entry of my contract with this tx:

AAAAAgAAAABaOyGfG/GU6itO0ElcKHcFqVS+fbN5bGtw0yDCwWKx2gAAfWIAAMkPAAAAhgAAAAAAAAAAAAAAAQAAAAAAAAAaAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAGAAAAARcIbO0PPglb1xipORtnWE27n6fYkR7yjzYpOcGTuaAhAAAAEAAAAAEAAAABAAAADwAAAANUbXAAAAAAAAAAAAAAAAAAAAAAtAAAALQAAAFoAAAAAAAAAEcAAAABwWKx2gAAAEAoh5kd14VgmFf5n3btum7XP2YuQvaky3AHYIcXSsV2pljKDM2AWD37ZSlaZ7OtIvQy9U8yk1lAk2XE1/ke+U8O

But the SendTransaction returns this error:

error_result_xdr: "AAAAAAAAe4f/////AAAAAQAAAAAAAAAa/////wAAAAA=" //restoreFootprintMalformed
It only occurs with temporary entry data, so that's the reason for my question.

green leaf
#

temporary entries are called so for a reason - when they expire, they're gone forever

ruby thunder
# green leaf temporary entries are called so for a reason - when they expire, they're gone fo...

Thanks, I was a little confused, since here https://soroban.stellar.org/docs/fundamentals-and-concepts/state-expiration#restorefootprintop it says:

The restored entry will have its expiration ledger bumped to the minimums the network allows for newly created entries, which is 4096 + current ledger for persistent entries, and 16 + current ledger for temporary entries
As if it were possible to restore temporary data.

green leaf
#

that's a confusing comment indeed, thanks for pointing out