【发布时间】:2022-01-03 10:04:08
【问题描述】:
这是我的合同 ABI
abi:[{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function",
"constant": true
}]
当我尝试使用 ethereum.request(...) 的 eth_call 方法获取所有者的地址时,它给了我填充物地址而不是真实地址,
得到0x000000000000000000000000ed3a7bb89eb3e355bed8975c5ff03e39d1c91c75
而不是0xed3a7bb89eb3e355bed8975c5ff03e39d1c91c75
如何将方法调用的输出转换为以太坊地址??
【问题讨论】: