Created
February 28, 2021 09:17
-
-
Save yuyasugano/81caf2f19da108d5665783d1421c3df7 to your computer and use it in GitHub Desktop.
PriceConsumerV3.sol deploument in brownie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export WEB3_INFURA_PROJECT_ID=<Rinkeby INFURA PROJECT ID> | |
$ brownie console --network rinkeby | |
Brownie v1.12.4 - Python development framework for Ethereum | |
JpycRinkebyProject is the active project. | |
Brownie environment is ready. | |
>>> accounts.add('<your private key>') | |
>>> con = PriceConsumerV3.deploy({'from': accounts[-1]}) | |
Transaction sent: 0x46b76bd13ceeb137066c01709a9e60201b4d4c0e49bbbd942b5bdb4953e54277 | |
Gas price: 1.0 gwei Gas limit: 244127 Nonce: 51 | |
PriceConsumerV3.constructor confirmed - Block: 8151604 Gas used: 221934 (90.91%) | |
PriceConsumerV3 deployed at: 0x3F323f90C92239124f447D48835240d06ACBE53e | |
>>> con.getLatestPrice() | |
146382 | |
>>> con.getLatestPrice() | |
146470 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment