Skip to content

when using #[serde(untagged)] it compiles with Floats #43

Open
@ratik

Description

@ratik

When I use serde(untagged) for parsing mixed types into enum, something like this

#[derive(PartialEq, Eq, Deserialize, Serialize)]
#[serde(untagged)]
pub enum TransactionFilterValue {
    String(String),
    Int(u128),
}

it compiles but on WASM execution it panics with

failed to execute message; message index: 0: Error calling the VM: Error compiling Wasm: Could not compile: WebAssembly translation error: Error in middleware Gatekeeper: Float operator detected: F64Load

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions