mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
fix: collateral param permission (#813)
This commit is contained in:
parent
04b65e1d4e
commit
e351e20727
@ -354,7 +354,7 @@ func (acps AllowedCollateralParams) Allows(current, incoming cdptypes.Collateral
|
|||||||
var foundCurrentCP bool
|
var foundCurrentCP bool
|
||||||
var currentCP cdptypes.CollateralParam
|
var currentCP cdptypes.CollateralParam
|
||||||
for _, p := range current {
|
for _, p := range current {
|
||||||
if p.Denom != incomingCP.Denom {
|
if p.Type != incomingCP.Type {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
foundCurrentCP = true
|
foundCurrentCP = true
|
||||||
|
Loading…
Reference in New Issue
Block a user