Oshchyk Compilation Smart -Contract Ethereum: Version Solc 0.15.1
The problem, with which you are table, verbathetically, connected with the elaborated version of the solitude in your Bibliotek Solcx, which can not be compilation with the Novoveshi Compilation Smart Contration Ethereum. Here’s a plaque for the resolution of this oshibki:
Prorekvizitis
- Encourage that you have installed
SOLICX
ISolc
with PIP:
`Bash
PIP Install Solcx
`
- Revenge that the solidity of the version 0.8.10 or the highest is exerted with the
solicx
.
- If you all more use the more old version of the solidity, which is more positive.
###
- Obnovation of Version Solc : Start the follow -up Commond in your terminal or in the Komandna Strake:
`Bash
Solc verse
`
This is to disassemble the teking version Solc
. Consider it up to 0.15.1, if this is not necessary.
- ** Install a new version of Solidity C
SOLICX
:
To use the more new version of solidnost (for example, 0.8.10), you can install her, use PIP:
`Bash
PIP Install Solcx [Solidity]
`
This comand automatic and your installation of solcis up to the last time.
3.
Python
Ot Web3 Import Web3, HTTPPROVIDER
Replace on Provider Netti Ethereum
Provider = httpprovider ('
Create a new Web3 copy
Web3 = Web3 (Post)
Skampille File Smart -Contact with Solc
Compile_files (['Path/to/Your/Smart_contract.sol'], Posthar, Output_dir = 'Path/To/Output/Directory')
Change your_project_id
on your factual identifier infura.
PRIMER PURIENTS
Here’s a simple prime that you can use the sommpilated files of the counteract to unfold smart -end:
`Python
Import of non -existent modules and expiry
Ot Web3 Import Web3, HTTPPROVIDER
Import OS
Replace on Provider Netti Ethereum
Provider = httpprovider ('
Create a new Web3 copy
Web3 = Web3 (Post)
Skampille File Smart -Contact with Solc
Compile_files (['Path/to/Your/Smart_contract.sol'], Posthar, Output_dir = 'Path/To/Output/Directory')
#Dow to expose smart -end in the ethereum network
Contract_address = Web3
Deploy_tx = contract_address.functions ('YoursmartContractfunction'). Call ()
Receive that you change Your_Project_id
-Dijnti -director infura andPath_contract.SOL,
Path/ A lot of counteract.
COVESTS ON THE BELARUS NEWS
- If you have all the problems, try to chat
Solc
to the more new version or over -edit her.
- Revenge that your post ethereum is course and consistent with
solicx
.
- Encourage that all unrequited reasons (for example,
Web3
,Solcx
) is established and functionalized.
The following is a shague, you can grind the compilation and firmly expand your smart -end with the last instruments.