Skip to content

Commit

Permalink
Remove event sentry, remove ChainCmd. Prepare for 0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
cmditch committed Jan 21, 2019
1 parent a6389d2 commit 7e9bf40
Show file tree
Hide file tree
Showing 12 changed files with 1,088 additions and 1,340 deletions.
7 changes: 4 additions & 3 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
"name": "cmditch/elm-ethereum",
"summary": "feed the tree some ether.",
"license": "MIT",
"version": "1.0.3",
"version": "2.0.0",
"exposed-modules": [
"Eth",
"Eth.Decode",
"Eth.Defaults",
"Eth.Net",
"Eth.RPC",
"Eth.Sentry.ChainCmd",
"Eth.Sentry.Event",
"Eth.Sentry.Tx",
"Eth.Sentry.Wallet",
"Eth.Types",
"Eth.Units",
"Eth.Utils",
"Internal.Encode",
"Internal.Decode",
"Internal.Utils",
"Abi.Decode",
"Abi.Encode",
"Shh"
Expand Down
21 changes: 10 additions & 11 deletions src/Abi/Decode.elm
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,14 @@ toElmDecoderWithDebug functionName =
{-| -}
decodeStringWithDebug : Maybe String -> AbiDecoder a -> String -> Result String a
decodeStringWithDebug debug (AbiDecoder abiDecoder) abiString =
let
_ =
case debug of
Just function ->
Debug.log ("Debug Contract Call Response " ++ function) abiString

Nothing ->
abiString
in
-- let
-- _ =
-- case debug of
-- Just function ->
-- Debug.log ("Debug Contract Call Response " ++ function) abiString
-- Nothing ->
-- abiString
-- in
remove0x abiString
|> (\a -> Tape a a)
|> abiDecoder
Expand Down Expand Up @@ -394,6 +393,7 @@ topic index abiDecoder =
TODO - Will this work if dynamic types are in the log data?
dropBytes might mess with the length of grabbing dyn vals off the Original Tape
-}
data : Int -> AbiDecoder a -> Decoder a
data index abiDecoder =
Expand All @@ -405,8 +405,7 @@ data index abiDecoder =
-- Internal


{-|
Eat and accumulate. Travel down the tape one word at a time, and return the value from what was just eaten.
{-| Eat and accumulate. Travel down the tape one word at a time, and return the value from what was just eaten.
-}
newTape : String -> String -> a -> ( Tape, a )
newTape original altered val =
Expand Down
Loading

0 comments on commit 7e9bf40

Please sign in to comment.