script-money / ens-claim-flashbot-example

save airdrop in hacked wallet example
279 stars 133 forks source link

adapt kihiru engine for ERC20 token #30

Closed CheapyFresh closed 1 year ago

CheapyFresh commented 1 year ago

Hello, please how can i adapt kihiru engine for an ERC20. I just need to unstake and send an ERC20. it is ok for the abi , but i j ust wondering how to modify this line since it is an ERC20:

tokenIds.forEach(async tokenId => { batchTransaction.push({ ...await this._KahiruNFTContract.populateTransaction.transferFrom(this._sender, this._recipient, tokenId), chainId: 1, gasLimit: 70000 }) });

CheapyFresh commented 1 year ago

Sorry i didnt noticed that other engine like SOS or Gas already do it. Resolved for me!