Open corydickson opened 8 months ago
I am experiencing the same issue. If you derive below on struct and use that struct as an argument to a public function, ABI generation fails.
#[derive(near_sdk::serde::Serialize, near_sdk::serde::Deserialize, Debug)]
#[serde(crate = "near_sdk::serde")]
SomeContext{with_some_fields}
pub fn (context: SomeContext){}
If you use #[near(serializers=[json,borsh])] -> all works fine
When running
cargo near build --embed-abi
as well ascargo near abi
on the following contract sources: https://github.com/archetype-org/attestation-registry/blob/main/src/lib.rsI get the following error:
Similar code also fails due to the same reason: https://github.com/NEAR-DevHub/neardevhub-contract
I believe this is because the abigen does not support the same types of schema traits as
borsh
. Is this a limitation with the standard or will support be added in the future.