Describe the bug
Calling the getMapEntry function in the Clarinet SDK for an entry that doesn't exist returns an error with the message "value not found" instead of returning Cl.none, as expected.
To Reproduce
Steps to reproduce the behavior:
Initialize the simnet object.
Call simnet.getMapEntry("contract", "map-name", Cl.standardPrincipal(address)) for a non-existent entry.
Expected behavior
The function getMapEntry should return Cl.none - or { type: 9 } - when the requested entry does not exist, instead of throwing an error.
Describe the bug Calling the
getMapEntry
function in the Clarinet SDK for an entry that doesn't exist returns an error with the message "value not found" instead of returning Cl.none
, as expected.To Reproduce Steps to reproduce the behavior:
simnet.getMapEntry("contract", "map-name", Cl.standardPrincipal(address))
for a non-existent entry.Expected behavior The function
getMapEntry
should returnCl.none
- or{ type: 9 }
- when the requested entry does not exist, instead of throwing an error.Environment