Hello from germany ✌️ im new to coding/testing

I have a simple openzeppelin import in my contract erc20/ownable contract.


Now im trying to test via hardhad and try to call some functions. I have some functions in my test.js code which works finde (deploy token, mint amount x)

My lesson is:

to check if deployer is the owner ✅

to transfer ownership ❌

I did the first task but dont know how to call the transfer ownership function

Anyone might have an big hint for me since my head is smoking?

Sep 9, 2022, 6:58 PM
await contract.transferOwnerhip(newAddress)
Sep 9, 2022, 7:01 PM

© 2024 Draquery.com All rights reserved.