Skip to content

Commit b3f7928

Browse files
Xingchen LiaoCyson
Xingchen Liao
and
Cyson
authored
Add error log to contract unregistration (#741)
Co-authored-by: Cyson <[email protected]>
1 parent 00e0e8f commit b3f7928

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x/dex/module.go

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) (ret []abc
301301
}
302302
for _, c := range validContractsInfoAtBeginning {
303303
if _, ok := validContractAddrs[c.ContractAddr]; !ok {
304+
ctx.Logger().Error(fmt.Sprintf("Unregistering invalid contract %s", c.ContractAddr))
304305
am.keeper.DoUnregisterContract(ctx, c)
305306
}
306307
}

0 commit comments

Comments
 (0)