Skip to content

Commit

Permalink
Add Approval(...) abi fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Nov 18, 2021
1 parent 6e4f822 commit 44d264e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ if config_env() == :dev do
struct: Examples.Erc20.Events.Approval,
handler: {Examples.EventHandler, :handle_erc20_approval, []},
abi: [
# token standard
%{
"anonymous" => false,
"inputs" => [
Expand All @@ -109,6 +110,29 @@ if config_env() == :dev do
],
"name" => "Approval",
"type" => "event"
},
# override
%{
"anonymous" => false,
"inputs" => [
%{
"indexed" => true,
"name" => "owner",
"type" => "address"
},
%{
"indexed" => true,
"name" => "spender",
"type" => "address"
},
%{
"indexed" => true,
"name" => "value",
"type" => "uint256"
}
],
"name" => "Approval",
"type" => "event"
}
]
}
Expand Down

0 comments on commit 44d264e

Please sign in to comment.