calling getMapEntry
in Clarinet SDK for non-existent entry returns error instead of Cl.none
#1461
Labels
clarinet-sdk
Issues related to the Clarinet JavaScript SDK
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
The text was updated successfully, but these errors were encountered: