Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ gasToJson
Function
gasToJson
libsolidity/interface/CompilerStack.cpp:2003–2009 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2001
{
2002
2003
Json gasToJson(GasEstimator::GasConsumption const& _gas)
2004
{
2005
if (_gas.isInfinite)
2006
return Json(
"infinite"
);
2007
else
2008
return Json(util::toString(_gas.value));
2009
}
2010
2011
}
2012
Callers
1
gasEstimates
Method · 0.85
Calls
1
toString
Function · 0.50
Tested by
no test coverage detected