You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code for retrieving rewards for a Rewardable Entity in slug /solana/rewardable-entites/ is broken due to incomplete import list. Example needs to be updated with proper imports.
Details
The example snippet given to retrieve the retrievable rewards for a Rewardable Entity the slug solana/rewardable-entites/ gives the following snippet:
In this snippet, the class PublicKey is referenced in the last line, but it is not imported from any module in the header. Thus, it produces a compilation error:
example.ts:9:21 - error TS2304: Cannot find name 'PublicKey'.
9 const iotMint = new PublicKey("iotEVVZLEywoTn1QdwNPddxPWszn3zFhEot3MfL9fns")
The text was updated successfully, but these errors were encountered:
Summary
Example code for retrieving rewards for a Rewardable Entity in slug
/solana/rewardable-entites/
is broken due to incomplete import list. Example needs to be updated with proper imports.Details
The example snippet given to retrieve the retrievable rewards for a Rewardable Entity the slug
solana/rewardable-entites/
gives the following snippet:In this snippet, the class
PublicKey
is referenced in the last line, but it is not imported from any module in the header. Thus, it produces a compilation error:The text was updated successfully, but these errors were encountered: