MCPcopy 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
2003Json 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

gasEstimatesMethod · 0.85

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected