Closed kalepail closed 2 months ago
Very specifically this arises from a scenario where a contract tries to delete a temporary entry which doesn't exist.
If I change my contract code from:
env.storage().temporary().remove(id);
to
if env.storage().temporary().has(id) {
env.storage().temporary().remove(id);
}
The problem goes away.
This still seems like a bug though either in simulation, the simulation response or the js-sdk.
Closed in favor of https://github.com/stellar/soroban-rpc/issues/239
Describe the bug
What version are you on?
"@stellar/stellar-sdk": "12.1.0",
To Reproduce https://gist.github.com/kalepail/191923ce760a1bbbdc1cd4b6cdbbee46
Expected behavior There should be no bug and the simulation response should be parsed successfully.
Additional context See the note here https://gist.github.com/kalepail/191923ce760a1bbbdc1cd4b6cdbbee46?permalink_comment_id=5114024#gistcomment-5114024 but essentially the
js-sdk
is bugging on anull
or""
state change. I'm not sure if this is an sdk or an rpc bug then as that seems like a pretty weird state change to report. Here's the full simulation response though the above gist will also get you this.