-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support hidden entities #38
base: main
Are you sure you want to change the base?
Conversation
🚅 Previously deployed to Railway in the Drips App project. Environment has been deleted. |
@@ -109,6 +118,9 @@ export default class TransferEventHandler extends EventHandlerBase<'Transfer(add | |||
dripList.previousOwnerAddress = from; | |||
dripList.ownerAccountId = await calcAccountId(to); | |||
|
|||
// This is real transfer. The Drip List should not be visible unless the block number is less than the visibility threshold. | |||
dripList.isVisible = blockNumber < visibilityThresholdBlockNumber; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't minting a new NFT account produce transfer
where from === null address? should this set isVisible
to true if from
is null address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The creation of the drip list (from === ZeroAddress
) is covered before in the code.
If the code reaches this point, the list already exists. Makes sense?
No description provided.