Python 我在MySQL中以字符串形式存储了一个智能合约实例。如何将其转换回实体实例?

Python 我在MySQL中以字符串形式存储了一个智能合约实例。如何将其转换回实体实例?,python,flask,solidity,Python,Flask,Solidity,我将用Solidity编写的智能合约实例存储在MySQL数据库中。 contract\u instance=eth\u provider.contract( abi=合同的abi, 地址=合同地址, ContractFactoryClass=ConciseContract) 存储的值类似于0x00000187148C9F98处的web3.contract.ConciseContract对象 当我在Python flask中检索值并访问智能合约函数时,显示的错误AttributeError:“st

我将用Solidity编写的智能合约实例存储在MySQL数据库中。
contract\u instance=eth\u provider.contract(
abi=合同的abi,
地址=合同地址,
ContractFactoryClass=ConciseContract)

存储的值类似于0x00000187148C9F98处的web3.contract.ConciseContract对象

当我在Python flask中检索值并访问智能合约函数时,显示的错误
AttributeError:“str”对象没有属性“getCustomerList”
.


如何将str中的值转换回智能合约实例?

只有
合约\u地址
在所有合约中都是不同的。仅存储地址,并在用户每次需要使用时编译合同