hashgraph / hashgraph/hedera-forking

[Hardhat] Convert `getHtsStorageAt` into a method to support persistent state

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Solidity
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

PR https://github.com/hashgraph/hedera-forking/pull/173 introduces a stateful mechanism to deal with `tokenURI` occupying more than one slot. This state is global, which lacks flexibility and could cause issues and confusion (given the state is not explicit) for consumers of the package.

To solve this problem, we should convert the `getHtsStorageAt` function into a class method and move the persistent state into the new class. This way, the state is now explicit, avoiding any surprise to the user.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.