mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
remove pointer from AtomicSwap
This commit is contained in:
parent
66c73362c8
commit
71d862300d
@ -14,7 +14,7 @@ import (
|
||||
func DecodeStore(cdc *codec.Codec, kvA, kvB cmn.KVPair) string {
|
||||
switch {
|
||||
case bytes.Equal(kvA.Key[:1], types.AtomicSwapKeyPrefix):
|
||||
var swapA, swapB *types.AtomicSwap
|
||||
var swapA, swapB types.AtomicSwap
|
||||
cdc.MustUnmarshalBinaryLengthPrefixed(kvA.Value, &swapA)
|
||||
cdc.MustUnmarshalBinaryLengthPrefixed(kvB.Value, &swapB)
|
||||
return fmt.Sprintf("%v\n%v", swapA, swapB)
|
||||
|
Loading…
Reference in New Issue
Block a user