Skip to content

Two identical functions inside a truffle migration #5910

Discussion options

You must be logged in to vote

Need to refer to the overloaded function, by its key in contract.methods. In my case:

console.log("Vested amount after 1 month:", BigInt(await VestingWallet.methods['vestedAmount(address,uint64)'](myToken.address, oneMonthLaterTimestamp)));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Flowiotit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant