Closed devlancer412 closed 2 weeks ago
@chimera-defi I added pushSgEth, pushWsgEth function from your feedback. Please check
did you take a look at erc7540 @devlancer412 ?
@chimera-defi Could you check current contract?
TODO:
wrt the deploy script, try to run this first
npx hardhat run --network localhost deploy/v2/1_deploy_minterv2.js
then swap out the withdrawal contract deployed there ^, with your new one. i.e. deploy both, onchain do a transfer ownership, so the system deployed in step 1 uses this new WithdrawalQueue
@chimera-defi Please check current contract. also added test script and modified deploy script
I've checked transfer function to the minter contract. actually it should be work correctly. seems like sth went wrong on development kit. As you know, ethers use bigint instead of BigNumber in v6. This error comes from incompatible packages when serialize bigint. Could we upgrade current development kit with updated ethers, typescript and typechain. I also had some trouble when testing this old packages such as tokenBalanceChange and ethBalanceChange.
@chimera-defi
@devlancer412 sure yea give it a shot plz! see if you can upgrade the packages. feel free to remove any were not using /that are deprecated to make it work as well.
also can you create a new branch off of master and close this one please?
can u take a look at the reference here @devlancer412 and see if you can impl it for this use case? its pretty well defined, and has some reference code https://github.com/ethereum/ERCs/blob/fdec97db783f425b88b7ec22093600f23c5879ab/ERCS/erc-7540.md