book
book copied to clipboard
.env Private Key loading
Loading an environment variable should handle private keys if private key is or isn't prefixed by "0x", indicating that its a hexadecimal.
vm.envUint("PRIVATE_KEY");
should handle prefixing it.
@0xPrimata your issue seems to be related to the Foundry product itself, not the book. This issue should have been created on the Foundry official repo.
I faced this exact same issue a while before, and I created an issue for this. Does this help you? https://github.com/foundry-rs/foundry/issues/6029
@Genesis3800 appologies! That's exactly what I was looking for, just wondering if they are actually taking your recommendation.
Not sure if this was merged though, I think they closed it. @Evalir said in the PR conversation that they included this functionality somewhere else. Are you still facing this issue as of now @0xPrimata ?
Please try again after running foundryup
Yep just checked, still having the same issue.
Then you gotta talk to maintainers on the OTHER repo @0xPrimata . I think I already helped a bit by guiding u 2 the right issue.