Cyfrin / foundry-smart-contract-lottery-cu

48 stars 42 forks source link

Failed to parse as type `uint256`: a character is not in the range 0-9 #33

Closed iftikharuddin closed 9 months ago

iftikharuddin commented 1 year ago

I am trying to run the deploy script test net ( sepolia ) but I am getting this error

Failed to parse as type `uint256`: a character is not in the range 0-9

image

The function which is called during deployment to Sepolia:

function getSepoliaEthConfig() public view returns (NetworkConfig memory sepoliaNetworkConfig) {
    sepoliaNetworkConfig = NetworkConfig({
        subscriptionId: 5613, // If left as 0, our scripts will create one!
        gasLane: 0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c,
        automationUpdateInterval: 30, // 30 seconds
        raffleEntranceFee: 0.01 ether,
        callbackGasLimit: 500000, // 500,000 gas
        vrfCoordinatorV2: 0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625,
        link: 0x779877A7B0D9E8603169DdbD7836e478b4624789,
        deployerKey: vm.envUint("PRIVATE_KEY")
    });
}
iftikharuddin commented 1 year ago

I have a temp solution here, incase any one needs an urgent solution

https://ethereum.stackexchange.com/questions/155068/failed-to-parse-as-type-uint256-a-character-is-not-in-the-range-0-9

PatrickAlphaC commented 1 year ago

Excellent use of stack exchange!!!