Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create contract from interface in brownie

# 1. Add your {YourInterface}.sol file in the ./interfaces folder
# 2. Then in your py script instantiate the contract from the interface and contract address
from brownie import interface
contract = interface.YourInterface(contract_address)
 
PREVIOUS NEXT
Tagged: #create #contract #interface #brownie
ADD COMMENT
Topic
Name
6+6 =