Skip to content

Commit

Permalink
update eth-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Sep 18, 2023
1 parent d6e4f3b commit aa510fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages.dhall
@@ -1,6 +1,7 @@
let upstream =
https://raw.githubusercontent.com/f-o-a-m/package-sets/09b71674a327f7601276846c1afb537342bb57ff/purs-0.15.7-web3.dhall
sha256:7e32f0c65a7b5d334ee98d7fda1d7d3a557b6b478421f545694bd8e1cd4d16ac
with eth-core.version = "v10.0.0"

let overrides = {=}

Expand Down
4 changes: 2 additions & 2 deletions src/Language/Solidity/Compiler/Types/Output.purs
Expand Up @@ -31,7 +31,7 @@ import Data.Maybe (Maybe, maybe)
import Data.Newtype (class Newtype)
import Foreign.Object as FO
import Language.Solidity.Compiler.Types.Common (ContractMapped, FileMapped, Strung)
import Network.Ethereum.Core.BigNumber (BigNumber, parseBigNumber)
import Network.Ethereum.Core.BigNumber (BigNumber, fromStringAs)
import Network.Ethereum.Types (HexString, mkHexString, unHex)

--------------------------------------------------
Expand Down Expand Up @@ -279,7 +279,7 @@ derive instance ordGasEstimate :: Ord GasEstimate
instance decodeJsonGasEstimate :: DecodeJson GasEstimate where
decodeJson j = decodeJson j >>= case _ of
"infinite" -> pure InfiniteGas
x -> note (Named "invalid BigNumber" $ UnexpectedValue j) $ GasCount <$> parseBigNumber Int.decimal x
x -> note (Named "invalid BigNumber" $ UnexpectedValue j) $ GasCount <$> fromStringAs Int.decimal x

newtype GasEstimates = GasEstimates (FO.Object GasEstimate)

Expand Down

0 comments on commit aa510fa

Please sign in to comment.