-
Notifications
You must be signed in to change notification settings - Fork 465
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Example contract:
contract MyContract {
// short string as it only has 31 characters
string public exists = "thequickbrownfoxjumpsoverthelaz";
}Script:
contract MyScript is Script {
using stdStorage for StdStorage;
function run() public {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
MyContract s = new MyContract();
uint256 slot = stdstore.target(address(s)).sig("exists()").find();
console2.log(slot);
vm.stopBroadcast();
}
}Output:
stdStorage find(StdStorage): Slot(s) not found.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working