Skip to content

Commit

Permalink
fix: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
5lliot committed Dec 17, 2023
1 parent e4c1276 commit 0a7f5e7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions models/contract_register/on_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ import (

func (mdl *ContractRegister) OnLog(txLog types.Log) {
blockNum := int64(txLog.BlockNumber)
if core.GetChainId(mdl.Client) != 1337 && (core.Topic("NewPoolAdded(address)") == txLog.Topics[0] ||
core.Topic("NewCreditManagerAdded(address)") == txLog.Topics[0]) {

address := common.HexToAddress(txLog.Topics[1].Hex())
version := core.FetchVersionOptimized(address, 0, mdl.Client)
log.Info(version)
if version.MoreThanEq(core.NewVersion(300)) {
return
}
}
switch txLog.Topics[0] {
case core.Topic("NewPoolAdded(address)"):
address := common.HexToAddress(txLog.Topics[1].Hex()).Hex()
Expand Down

0 comments on commit 0a7f5e7

Please sign in to comment.