Skip to content

Invalid address error while deploying dynamic svg nft contract #5353

Answered by Nlferu
Mayank-Pandey1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Mayank-Pandey1

You have incorrectly built contructor in your DenamicSvgNft contract. You have to pass constructor arguments in same order as they are in contract, so correct your DenamicSvgNft into below:

constructor(
        address priceFeedAddress,
        string memory lowSvg,
        string memory highSvg
    )

or correct your 03-dynamic-svg-nft.js into below:

args = [lowSvg, highSvg, ethUsdPriceFeedAddress];

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mayank-Pandey1
Comment options

Answer selected by Mayank-Pandey1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants