We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1af9c9 + 65e7a0e commit f875971Copy full SHA for f875971
models/contract_register/on_log.go
@@ -16,6 +16,16 @@ import (
16
17
func (mdl *ContractRegister) OnLog(txLog types.Log) {
18
blockNum := int64(txLog.BlockNumber)
19
+ if core.GetChainId(mdl.Client) != 1337 && (core.Topic("NewPoolAdded(address)") == txLog.Topics[0] ||
20
+ core.Topic("NewCreditManagerAdded(address)") == txLog.Topics[0]) {
21
+
22
+ address := common.HexToAddress(txLog.Topics[1].Hex())
23
+ version := core.FetchVersionOptimized(address, 0, mdl.Client)
24
+ log.Info(version)
25
+ if version.MoreThanEq(core.NewVersion(300)) {
26
+ return
27
+ }
28
29
switch txLog.Topics[0] {
30
case core.Topic("NewPoolAdded(address)"):
31
address := common.HexToAddress(txLog.Topics[1].Hex()).Hex()
0 commit comments