Skip to content

Commit

Permalink
breaking things a bit by assuming passive negotiation and show the fi…
Browse files Browse the repository at this point in the history
…lter expression.
  • Loading branch information
Weiwu Zhang committed Oct 20, 2020
1 parent 3e37727 commit b76b3eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bootstrap-js/tokenscript-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ window.Negotiator = (function(){
debug && console.log(filter);

// contract.queryFilter(filter).then(this.cb(eventType + ' where ' + eventFilter));
contract.queryFilter(filter).then(callback);
contract.queryFilter(flter).then(callback);

// let res = output._isBigNumber ? bnStringPrecision(output,18,8) : output;
// let res = output._isBigNumber ? output.toString() : output;
Expand Down Expand Up @@ -1363,8 +1363,12 @@ window.Negotiator = (function(){
if (ethereum.selectedAddress ){
stats = {"Ethereum Network": network.name,
"Your Address": ethereum.selectedAddress,
"Negotiation Filter": "objectClass=" + tokenName
};
/* will break for active negotiation, replace the following 4 lines with what's going on with the current negotiation */
var filter = document.querySelector("meta[name='token.filter']");
if (filter != null) {
stats["Negotiation Filter"] = filter.content;
}
var tbody = document.createElement("tbody");
for (i in stats) {
var th = document.createElement("th");
Expand Down

0 comments on commit b76b3eb

Please sign in to comment.