Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
3.41k stars 831 forks source link

lesson:11 Can't Mint with ```make``` after deploying #404

Closed highHumann closed 1 year ago

highHumann commented 1 year ago
mint:
    @forge script script/Interactions.s.sol:MintBasicNft $(NETWORK_ARGS)

i was using this where

ifeq ($(findstring --network sepolia,$(ARGS)),--network sepolia)
NETWORK_ARGS := --rpc-url $(SEPOLIA_RPC_URL) --private-key $(PRIVATE_KEY) --broadcast --verify --etherscan-api-key $(ETHERSCAN_API_KEY) -vvvv
endif

but I was still getting an error while running it maunally without using make mint in the terminal it succeeded don't know why it was not working with make

Originally posted by @highHumann in https://github.com/Cyfrin/foundry-full-course-f23/discussions/402#discussioncomment-6515499

txusif commented 1 year ago

How did you run it?

PatrickAlphaC commented 1 year ago

Can you make this in discussions?

highHumann commented 1 year ago

https://github.com/Cyfrin/foundry-full-course-f23/discussions/465#discussion-5444893 I have created a discussion here

highHumann commented 1 year ago

How did you run it?

make mint ARGS="--network-sepolia"

highHumann commented 1 year ago

it finally worked i found my error I was writing make mint ARGS="--network-sepolia" when I should write make mint ARGS="--network sepolia"