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
This is error prove and unnecessary. starknet-api should provide a way for the lib consumers to access those values directly. Display provides the to_string method, which seems like a good way to implement this. It could also be used in your serde(rename) tag, instead of hardcoding it.
The text was updated successfully, but these errors were encountered:
The string
"L1_GAS"
and"L2_GAS"
are defined by the protocol. Right now I have to define those myself while using this lib:This is error prove and unnecessary. starknet-api should provide a way for the lib consumers to access those values directly.
Display
provides theto_string
method, which seems like a good way to implement this. It could also be used in yourserde(rename)
tag, instead of hardcoding it.The text was updated successfully, but these errors were encountered: