Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created February 28, 2021 09:17
Show Gist options
  • Save yuyasugano/81caf2f19da108d5665783d1421c3df7 to your computer and use it in GitHub Desktop.
Save yuyasugano/81caf2f19da108d5665783d1421c3df7 to your computer and use it in GitHub Desktop.
PriceConsumerV3.sol deploument in brownie
$ 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