Skip to content

Commit 191bd65

Browse files
committed
fix attributes
1 parent 94c8172 commit 191bd65

File tree

3 files changed

+474
-270
lines changed

3 files changed

+474
-270
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vscode/
12
/_build
23
/.elixir_ls
34
/cover

apps/neoscan_web/lib/neoscan_web/api.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ defmodule NeoscanWeb.Api do
194194
defp render_transaction(transaction) do
195195
%{
196196
:txid => Base.encode16(transaction.hash, case: :lower),
197-
:attributes => transaction.extra[:attributes] || [],
197+
:attributes => transaction.extra["attributes"] || [],
198198
:net_fee => transaction.net_fee,
199-
:scripts => transaction.extra[:scripts] || [],
199+
:scripts => transaction.extra["scripts"] || [],
200200
:size => transaction.size,
201201
:sys_fee => transaction.sys_fee,
202202
:type => Macro.camelize(transaction.type),

0 commit comments

Comments
 (0)