ayushch80 / OM-CHAIN

Should not have unused variables JS-0128
Bug risk
Major
a year agoa year old
'sha256' is assigned a value but never used. Allowed unused vars must match /^_/u
  3const Wallet = require('./blockchain/wallet'); 
  4const Blockchain = require('./blockchain/blockchain'); 
  5//const Block = require('./blockchain/block'); 
  6const sha256 = require('crypto-js/sha256');   7//const Transaction = require('./transaction'); 
  8const { Deta } = require('deta'); 
  9const crypto = require('crypto'); 
'getDataByBlockNumber' is defined but never used. Allowed unused vars must match /^_/u
206  } 
207 
208  //get block data function by block number 
209  async function getDataByBlockNumber(blockNumber) { 210    var data = bl.chain[blockNumber] 
211    return JSON.stringify(data); 
212  } 
'address' is defined but never used. Allowed unused args must match /^_/u
167} 
168 
169//accountDetails function 
170async function accountDetails(address) { 171  document.getElementById('bd').innerHTML =  
172    ` 
173    <p style="font-family: spacemono;"><b style="font-family: spacemonob;">ADDRESS : </b>${myW.address}</p>