我将以可靠格式编写的智能合约实例存储在MySQL数据库中。contract_instance = eth_provider.contract( abi=contract_abi, address=contract_address, ContractFactoryClass=ConciseContract)
存储的值类似于0x00000187148C9F98处的Ex: web3.contract.ConciseContract对象
当我检索Python flask中的值并访问智能合约函数时,错误显示为AttributeError: 'str' object has no attribute 'getCustomerList'。
如何将字符串中的值转换回智能合约实例?
发布于 2020-02-14 11:16:59
在所有的合同中,只有contract_address是不同的。仅存储地址,并在每次用户需要使用它时编译合同
https://stackoverflow.com/questions/59991820
复制相似问题