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
will cause the coin: coin in pool_params to be treated as RustType::Rust(RustIdent("Coin")) instead of RustType::Alias(AliasIdent::Rust(RustIdent("Coin")), RustType::Primitive(Primitive::U64)) which results in to/from wasm generating incorrect code as it thinks it's a rust struct not a primitive. This is a problem as it will try and take it by reference (important since &u64 params are compile errors in wasm_bindgen) and will clone it excessively (less important).
example:
will cause the
coin: coin
inpool_params
to be treated asRustType::Rust(RustIdent("Coin"))
instead ofRustType::Alias(AliasIdent::Rust(RustIdent("Coin")), RustType::Primitive(Primitive::U64))
which results in to/from wasm generating incorrect code as it thinks it's a rust struct not a primitive. This is a problem as it will try and take it by reference (important since&u64
params are compile errors in wasm_bindgen) and will clone it excessively (less important).This would likely be fixed by #93
The text was updated successfully, but these errors were encountered: