near-runtime-ts
near-runtime-ts copied to clipboard
Assert fails to run
Using assert
in contracts leads to
Quering call/contractName/tester failed: wasm execution failed with error: WasmerCallError("Smart contract has explicitly invoked `panic`.").
Expected:The Error message is visible in the RPC return
Do you mind adding a code snippet to repro?
From the chat:
export function tester(): void {
assert(false, "Error");
}
fails (without returning the "Error" string) when you call it as a view function
It's an issue with nearlib. @vgrichina will look into it.