Hi I have a question for which I can't find an answer online. If i have a code like the following.. what will be the result of a gas estimation (like from metamask)

Sep 14, 2021, 12:07 AM
if (gasLeft() < N) {
doWork() // uses 100 gas
} else {
doOtherWork() // uses 1000 gas
}
Sep 14, 2021, 12:07 AM

© 2024 Draquery.com All rights reserved.