|
|
@ -178,7 +178,8 @@ updateGasInfo [] _ gi = gi |
|
|
|
updateGasInfo ((t@(Tx (SolCall((f, _))) _ _ _ _ _ _), (_, used')):ts) tseq gi = |
|
|
|
updateGasInfo ((t@(Tx (SolCall((f, _))) _ _ _ _ _ _), (_, used')):ts) tseq gi = |
|
|
|
let mused = Data.Map.lookup f gi |
|
|
|
let mused = Data.Map.lookup f gi |
|
|
|
in case mused of Nothing -> updateGasInfo ts (t:tseq) (insert f (used', t:tseq) gi) |
|
|
|
in case mused of Nothing -> updateGasInfo ts (t:tseq) (insert f (used', t:tseq) gi) |
|
|
|
Just (used, _) | used' > used -> updateGasInfo ts (t:tseq) (insert f (used', t:tseq) gi) |
|
|
|
Just (used, _) | used' > used -> updateGasInfo ts (t:tseq) (insert f (used', reverse (t:tseq)) gi) |
|
|
|
|
|
|
|
Just (used, otseq) | (used' == used) && ((length otseq) > (length (t:tseq))) -> updateGasInfo ts (t:tseq) (insert f (used', reverse (t:tseq)) gi) |
|
|
|
_ -> updateGasInfo ts (t:tseq) gi |
|
|
|
_ -> updateGasInfo ts (t:tseq) gi |
|
|
|
updateGasInfo ((t, _):ts) tseq gi = updateGasInfo ts (t:tseq) gi |
|
|
|
updateGasInfo ((t, _):ts) tseq gi = updateGasInfo ts (t:tseq) gi |
|
|
|
|
|
|
|
|
|
|
|