Skip to content
Permalink
Browse files

update config name & add processNumber config

  • Loading branch information...
khaihkd committed Jul 21, 2018
1 parent 3175f8d commit daf6e86bb869b7f37191d60b280dcda1a206c488
Showing with 4 additions and 3 deletions.
  1. +2 −1 config/default.json
  2. +1 −1 models/blockchain/tomocoin.js
  3. +1 −1 queues/transaction.js
@@ -12,5 +12,6 @@
"ws": "wss://mainnet.infura.io/ws",
"http": "https://testnet.tomochain.com"
},
"tomo_address": "0x8b353021189375591723e7384262f45709a3c3dc"
"tomoAddress": "0x8b353021189375591723e7384262f45709a3c3dc",
"processNumber": 6
}
@@ -398,7 +398,7 @@ const ABI = [
Tomochain testnet address: 0x76562af804a46ad4c441aca5693583b69b1c387d
*/

const ADDRESS = config.get('tomo_address')
const ADDRESS = config.get('tomoAddress')

const TomoCoin = new chain.eth.Contract(ABI, ADDRESS)

@@ -24,7 +24,7 @@ consumer.task = async function(job, done) {

for (let i = 0; i < logs.length; i++) {
let log = logs[i]
if (log.address.toLowerCase() === config.get('tomo_address')){
if (log.address.toLowerCase() === config.get('tomoAddress')){
// TODO: hashcode because this is for ERC20 transfer function
if (log.topics[0].toLowerCase() === '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef') {
let fromWallet = log.topics[1].replace('0x000000000000000000000000', '0x')

0 comments on commit daf6e86

Please sign in to comment.
You can’t perform that action at this time.