EatTheBlocks Forum

Day 11 - String Maniupulation React Error

Hey Guys,

So i’ve just struck a problem with the Day-11 String Manipulation code. Firstly, truffle is running fine. i’ve also run npm install to install the dependencies and also web3.

The code comes direct from the finished github repository and i’m using the solidity 0.8.0 version.

Anyway, the react page loads fine and metamask connects to it but when I try to manipulate the strings and update the blockchain I get an error saying: “This contract doesn’t have an address yet”. Image attached below.

Now, i’ve migrated the script with truffle and checked that the contract json file is correct with address and transaction hash in the client folder.

Any ideas? Seems to be something to do with React as far as I can fathom.