Replies: 2 comments
-
|
@GoudhamT, please share your test. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hello @GoudhamT Maybe somethings goes wrong, or the script has been done two times! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on lottery project from Foundry fundamentals, below is my Interactions.s.sol, while executing forge script command in terminal for SEPOLIA, I got 2 subscription ID created, can you please explain how it happened?
`
//SPDX-License-Identifier:MIT
pragma solidity 0.8.19;
import {Script, console} from "forge-std/Script.sol";
import {HelperConfig, CodeConstants} from "script/HelperConfig.s.sol";
import {VRFCoordinatorV2_5Mock} from "@chainlink/contracts/src/v0.8/vrf/mocks/VRFCoordinatorV2_5Mock.sol";
import {LinkToken} from "test/mocks/LinkToken.sol";
contract CreateSubscription is Script {
function run() public {
createSubscriptionFromConfig();
}
}
`
command in make file:
forge script script/Interactions.s.sol:CreateSubscription --rpc-url$(SEPOLIA_RPC_URL) --private-key $ (SEPOLIA_PRIVATE_KEY) --broadcast
Beta Was this translation helpful? Give feedback.
All reactions