You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plafer
changed the title
Deserializing a ClientType requires leaking memory
Deserializing a ClientType requires an input with static lifetime
Oct 31, 2022
shuoer86
pushed a commit
to shuoer86/ibc-rs
that referenced
this issue
Nov 4, 2023
Summary of Bug
ClientType contains a
&'static str
, which makes it impossible to Deserialize ClientType without leaking memory.Version
0.21.1
Steps to Reproduce
Here's a simplified example of the issue, reproduced below:
There's no way to make this code compile besides giving
json_str
a&'static str
lifetime.Acceptance Criteria
Fix ClientType to contain a String instead of a
&'static str
.For Admin Use
The text was updated successfully, but these errors were encountered: