我将用Solidity编写的智能合约实例存储在MySQL数据库中。
contract_instance = eth_provider.contract(
abi=contract_abi,
address=contract_address,
ContractFactoryClass=ConciseContract)
存储的值类似于0x00000187148C9F98处的web3.contract.ConciseContract对象
当我在Python flask中检索值并访问智能合约函数时,错误显示为AttributeError: 'str' object has no attribute 'getCustomerList'
.
如何将str的值转换回智能合约实例
所有合同中只有
contract_address
不同。仅存储地址,并在用户每次需要使用时编译合同相关问题 更多 >
编程相关推荐