I am trying to decode attributes encoded in JSON in an Elrond rust smart contract.
I am parsing it with the serde
crate. My contract compiles well but when I deploy it, I got an invalid contract code.
Here's my Cargo.toml
[dependencies]
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
Here's the failing deploy tx: https://devnet-explorer.elrond.com/transactions/6579f00950eecec3f3e5280eda463d05e159f6000bf9603e6692a90abed04b0d
How can I handle JSON attributes on a rust Smart Contract, please?