Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Aug 1, 2024
1 parent fdcb8a5 commit 35fd10d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2241,8 +2241,8 @@ const dataModule = {
context.commit('addFungibleMetadata', {
chainId: parameter.chainId,
contract,
symbol,
name,
symbol: symbol && symbol.trim() || null,
name: name && name.trim() || null,
decimals: decimals,
totalSupply: totalSupply && totalSupply.toString() || null,
image,
Expand Down
8 changes: 4 additions & 4 deletions docs/viewTokenContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@ const viewTokenContractModule = {
},
setSymbol(state, symbol) {
// console.log(now() + " INFO viewTokenContractModule:mutations.setSymbol - symbol: " + symbol);
state.symbol = symbol;
state.symbol = symbol && symbol.trim() || null;
},
setName(state, name) {
// console.log(now() + " INFO viewTokenContractModule:mutations.setName - name: " + name);
state.name = name;
state.name = name && name.trim() || null;
},
setDecimals(state, decimals) {
// console.log(now() + " INFO viewTokenContractModule:mutations.setDecimals - decimals: " + decimals);
Expand All @@ -434,8 +434,8 @@ const viewTokenContractModule = {
},
setContractValues(state, info) {
// console.log(now() + " INFO viewTokenContractModule:mutations.setContractValues - info: " + JSON.stringify(info));
state.contractSymbol = info.contractSymbol;
state.contractName = info.contractName;
state.contractSymbol = info.contractSymbol && info.contractSymbol.trim() || null;
state.contractName = info.contractName && info.contractName.trim() || null;
state.contractDecimals = info.contractDecimals;
},
setBalances(state, balances) {
Expand Down

0 comments on commit 35fd10d

Please sign in to comment.