-
I am facing this OutofFunds issue and not getting anywhere what is causing it maybe the send value which was set to 0.1 ether but increasing it made no changes
here is the interactions.s.sol
And here is the interactionstest.t.sol
Thanks in advance for helping out |
Beta Was this translation helpful? Give feedback.
Answered by
EngrPips
Jan 14, 2025
Replies: 1 comment
-
Hello @Fahad3242, Please wrap your function fundFundMe(address mostRecentlyDeployed) public {
console.log("Most recently deployed FundMe contract: %s", mostRecentlyDeployed);
console.log("Sending %s to FundMe contract", SEND_VALUE);
console.log("Funding FundMe contract with %s", SEND_VALUE);
vm.startBroadcast();
FundMe(payable(mostRecentlyDeployed)).fund{value: SEND_VALUE}();
vm.stopBroadcast();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Fahad3242
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Fahad3242, Please wrap your
FundMe(payable(mostRecentlyDeployed)).fund{value: SEND_VALUE}();
inside avm.startBroadcast()
andvm.stopBroadcast();
as shown below, then retry the process. You should runforge clean
and delete the cache folder if you have one before retrying.