Hello! I have question about Gas Limit calculation.

I can compute estimate gas via web3 or other libraries, but only if I have control over signer account. But in my case I have smart-contract, and one function of it only can be called by Admin of this contract. Other people get "REVERT" error. I dont know admins private key. Can I compute how much gas will be spend if Admin call this function?

Feb 12, 2021, 2:20 PM
Yes, you need to set as argument { from: adminAddress }
Feb 12, 2021, 8:51 PM

© 2024 Draquery.com All rights reserved.