CRYPTO NEWS

Why the crypto market crash may play in Bitcoin's favour

Podcaster and Bitcoin educator Natalie Brunell believes the current market turmoil could lead to regulation favoring Bitcoin over alts.

Testing Uniswap tutorial contracts on local testnet forked from mainnet

I’m following this tutorial to understand Uniswap v3 better: https://docs.uniswap.org/protocol/guides/swaps/single-swaps I’ve wrote the contract and compiled it. I had previously created my own tokens and deployed then, the only difference was – the constructor didn’t expect any argument. This tutorial proposes this constructor: I found the SwapRouter here: https://etherscan.io/address/0xe592427a0aece92de3edee1f18e0157c05861564 So what I tried to do::Listen

I’m following this tutorial to understand Uniswap v3 better: https://docs.uniswap.org/protocol/guides/swaps/single-swaps

I’ve wrote the contract and compiled it. I had previously created my own tokens and deployed then, the only difference was – the constructor didn’t expect any argument.

This tutorial proposes this constructor:

enter image description here

I found the SwapRouter here: https://etherscan.io/address/0xe592427a0aece92de3edee1f18e0157c05861564

So what I tried to do in my Hardhat deployment script is the following: enter image description here

I did use Alchemy.io to fork the mainnet: enter image description here

I took the latest block number from https://etherscan.io/blocks

And ran it as follows: yarn hardhat node assuming my default one will be forking mainnet, and it seems so it did.

Still, I get the error of Artifact not being found if using the code above, or if renaming the contract to just "SwapRouter" it says it cannot find it in the artifacts.

Can anyone point me to a mistake?

Thanks a lot

Why the crypto market crash may play in Bitcoin's favour

Shopping cart
There are no products in the cart!
Continue shopping
0