Closed huahuayu closed 4 years ago
版本:国密2.4.0
使用console交互没问题
[group:1]> deploy HelloWorld contract address: 0x4375eddc0500ef67d242843c2f10744135fa6297 [group:1]> call HelloWorld 0x4375eddc0500ef67d242843c2f10744135fa6297 set "hi" transaction hash: 0x351afea4c84d99e5f514cdf1f4568ca6df18fef21c2cc22bf2a73de9421ac7f1 [group:1]> call HelloWorld 0x4375eddc0500ef67d242843c2f10744135fa6297 get hi
使用web3j跑测试ContractTest报错
The execution of the contract rolled back. org.fisco.bcos.web3j.tx.exceptions.ContractCallException: The execution of the contract rolled back.
在报错信息之前还有一个信息,说明合约部署是没问题的,所以sdk是可以连接区块链的,连接应该没有问题
HelloWorld address is: 0xc48a6d8a3c38f256be2c238f1f8c221fba1e2fb5 2020-06-09 17:35:57,903 [nioEventLoopGroup-2-1] INFO [org.fisco.bcos.channel.client.Service] Service.java:1388 - Receive block notify: {"blockNumber":5,"groupID":1}
备注: 在applicaton.yml中已经设置了使用国密
encrypt-type: # 0:standard, 1:guomi encrypt-type: 1
问题解决了,参考https://github.com/FISCO-BCOS/FISCO-BCOS/issues/1626#issuecomment-640417988
版本:国密2.4.0
使用console交互没问题
使用web3j跑测试ContractTest报错
在报错信息之前还有一个信息,说明合约部署是没问题的,所以sdk是可以连接区块链的,连接应该没有问题
备注:
在applicaton.yml中已经设置了使用国密