How to Interact with Smart Contracts Using Brownie
After installing and working with Ganache CLI , we are going to interact with simple storage smart contracts Using Brownie. Meaning that we want to store and retrieve a value within the contract. After doing this you will see how simple and efficient Brownie is compared to other methods in python. We are also going to use testing modules to test the functionality of the contract and its deployment.
Using Brownie to Interact with Smart Contracts
In the previous section of this tutorial, we learned how to deploy our simple storage smart contract . In this one, we are going to interact with it, meaning that we want to store a value inside the contract and retrieve it using Brownie. After doing this you will see how simply and efficiently Using Brownie to interact with smart contracts can get compared to other methods in python.
Retrieving the Stored Data:
So, to follow our deploy.py script, we have:
from Brownie import accounts, config, SimpleStorage
def dep...