mintbase-js
mintbase-js copied to clipboard
`callViewMethod` gives a cryptic error when the smart contract panics while calling the view method
This currently throws Buffer.from requires a string, Buffer (some other stuff), as first argument, got undefined
. We should instead be throwing the panic message from the smart contract.
props to @armsves for finding this