File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai
166166 }
167167
168168 async function updateBalance ( application , owner , blockHash ) {
169- const response = JSON . parse ( await application . query ( gql ( `query { tickerSymbol, accounts { entry(key: "${ owner } ") { value } } }` ) ) ) ;
169+ const response = JSON . parse ( await application . query ( gql ( `query { tickerSymbol, accounts { entry(key: "${ owner } ") { value } } }` ) , blockHash ) ) ;
170170 console . debug ( 'application response:' , response ) ;
171171 document . querySelector ( '#ticker-symbol' ) . textContent = response . data . tickerSymbol ;
172172 document . querySelector ( '#balance' ) . textContent = ( + ( response ?. data ?. accounts ?. entry . value || 0 ) ) . toFixed ( 2 ) ;
You can’t perform that action at this time.
0 commit comments