修改查询区块链逻辑

This commit is contained in:
chaosBreaking
2019-10-02 23:03:56 +08:00
parent 298d3da92d
commit 3921ba9e0d

View File

@@ -7,7 +7,7 @@ const getUSDTTxList = async address => {
const res = await ERC20.getActions(address, USDTAddr, startBlock).catch(err => {
if (err) return [];
});
return res;
return res.filter(tx => tx.to === address); //只取转入到改地址的
};
const parseUsdtTx = txList => {