path problem in role contract
boundless-forest opened this issue · 3 comments
boundless-forest commented
Path problem in role contract
[Description of the issue]
import "../interaction/interface/IRoleAuth.sol";
Import path in the contract should be ../../interaction~~~
Versions
Latest
boundless-forest commented
Please deep into the reason why it works well before.
kaikai1024 commented
Need to check the create_genesis.py
.
RoleAuth
['/usr/bin/solc', '--combined-json', 'bin,abi,userdoc,devdoc,hashes', '--optimize', 'common=/opt/cita/xydddz/template/contracts/src/common', 'lib=/opt/cita/xydddz/template/contracts/src/lib', 'interaction=/opt/cita/xydddz/template/contracts/interaction', 'RoleAuth.sol']
INFO:cita.block Block pre-sealed, 2469175 quota used
INFO:cita.chain Adding to head head=77eab836
Saved 2 address change logs
INFO:cita.chain Added block 14 (988998e9) with 1 txs and 2469175 quota
pyethereum can compile it..., need to check the code.
kaikai1024 commented
first:
cd test-chain/template/contracts/src/role_management
then:
/usr/bin/solc-v0.4.24 --optimize common=/home/kaikai/Work/cita/target/install/test-chain/template/contracts/src/common lib=/home/kaikai/Work/cita/target/install/test-chain/template/contracts/src/lib interaction=/home/kaikai/Work/cita/target/install/test-chain/template/contracts/interaction RoleAuth.sol --hashes
It should be the bug of solc
.