Ethereum 在使用ethers.js过滤事件之后,如何使主题具有可读性

Ethereum 在使用ethers.js过滤事件之后,如何使主题具有可读性,ethereum,solidity,Ethereum,Solidity,我在以太坊做活动 我可以使用以下代码()获取事件 但我只是获取主题,如何将主题转换回人类可读的格式 const App = await ethers.getContractFactory("app"); let app = await App.attach(addressOfContract); const logs = await app.filters.trustAdded(owner.address); { address: 'addressOfContract'

我在以太坊做活动

我可以使用以下代码()获取事件

但我只是获取主题,如何将主题转换回人类可读的格式

const App = await ethers.getContractFactory("app");
let app = await App.attach(addressOfContract);
const logs = await app.filters.trustAdded(owner.address);

{
  address: 'addressOfContract',
  topics: [
    '0x9229966fc31285cf68748b91cfbc30dc196a49c2eaaf884d89125eb243aa211c',
    '0x000000000000000000000000996bf770d6027b7c1315637cda4dda684780bbde'
  ]
}

当您运行附加到筛选器的方法时,您是允许您查找事件的正确数据

const App = await ethers.getContractFactory("app");
let app = await App.attach(addressOfContract);
const logs = await app.filters.trustAdded(owner.address);
**const _logs = await app.queryFilter(logs, 0)**
_日志将具有您在.args下查找的值