CetusProtocol / cetus-clmm-sui-sdk

The clmm sdk on Sui.
Apache License 2.0
35 stars 25 forks source link

utils/common.ts/buildPosition Validation Error #8

Closed icegriffinguru closed 4 months ago

icegriffinguru commented 6 months ago

https://github.com/CetusProtocol/cetus-clmm-sui-sdk/blob/3ff730264688ece50a6e31b499fa2d80ef9aab7c/src/utils/common.ts#L201

When I queried my Position, objects.error was not empty while object.data.content was correct. The error was 'Could not find the referenced transaction events TransactionEventsDigest(EoX7bG16cqGe6T6n7DbvJMpau9j6psCaoNDF4XQu3NqN)].' I doubt why we need objects.error != null validation in buildPosition function.

devlb1024 commented 4 months ago

Thanks for the feedback. Fixed in v5.1.2