mirror of
https://github.com/trezor/blockbook.git
synced 2026-03-06 15:48:01 +01:00
Store new contract info including the type of contract
This commit is contained in:
@@ -609,6 +609,9 @@ func (w *Worker) getContractDescriptorInfo(cd bchain.AddressDescriptor, typeFrom
|
||||
|
||||
validContract = false
|
||||
} else {
|
||||
if typeFromContext != bchain.UnknownTokenType && contractInfo.Type == bchain.UnknownTokenType {
|
||||
contractInfo.Type = typeFromContext
|
||||
}
|
||||
if err = w.db.StoreContractInfo(contractInfo); err != nil {
|
||||
glog.Errorf("StoreContractInfo error %v, contract %v", err, cd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user