linera-protocol icon indicating copy to clipboard operation
linera-protocol copied to clipboard

If I define member with `MapView<u64, Object>` in application state, then I get error `linera_views::graphql::MapInput<u16>` and `linera_views::graphql::MapInput<u64>` have the same GraphQL name `MapInput_Int`

Open kikakkz opened this issue 10 months ago • 1 comments

Description With SDK 0.10.0, when define MapView<u64, Object> in state, then access application through browser, we get "Local node operation failed: Local node operation failed: Execution error: Failed to execute Wasm module in Wasmer. This may be caused by panics or insufficient fuel. during Query". Check service log, we get 2024-03-30T09:00:16.142347Z ERROR linera_execution::wasm::wasmer: panicked at /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-graphql-7.0.3/src/registry/mod.rs:869:25: linera_views::graphql::MapInputandlinera_views::graphql::MapInputhave the same GraphQL nameMapInput_Int``

Steps 1 Define the application state member with MapView<u64, Object1> and MapView<u16, Object2> 2 Deploy application 3 Access application through browser

Result linera_views::graphql::MapInput<u16> and linera_views::graphql::MapInput<u64> have the same GraphQL name MapInput_Int

Screenshots image

Version 0.10.0

kikakkz avatar Mar 30 '24 09:03 kikakkz