Until now, I used Remix or Truffle to deploy SmartContract.
I decided to use py-solc-x because I wished I could deploy it on Python.
I couldn't solve the problem, so I would like to ask for your help this time.
Excerpts from python
In the above case, I was able to deploy successfully.
I added a new Version class to solidity and made it inherit.
Due to the increasing number of constructor arguments, I changed python as follows.
This python caused an error.
When I got abi, I understood that the number of arguments did not match because it was only for the Version class.
With remix, you can specify which class to compile, but can you do the same with py-solc-x?
Or does anyone know if the version class is not good?
There was a problem or lack of consideration with the code not listed.
That's how I got abi.
compile_source_file function is unique and runs
If you have more than one class,
2 in this case.
As a result, popitem took the first one and returned the version class abi and leaked the acquisition of the base class.
I tried to loop and check as above.
© 2023 OneMinuteCode. All rights reserved.