mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-13 03:25:20 +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 {
|
func DecodeStore(cdc *codec.Codec, kvA, kvB cmn.KVPair) string {
|
||||||
switch {
|
switch {
|
||||||
case bytes.Equal(kvA.Key[:1], types.AtomicSwapKeyPrefix):
|
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(kvA.Value, &swapA)
|
||||||
cdc.MustUnmarshalBinaryLengthPrefixed(kvB.Value, &swapB)
|
cdc.MustUnmarshalBinaryLengthPrefixed(kvB.Value, &swapB)
|
||||||
return fmt.Sprintf("%v\n%v", swapA, swapB)
|
return fmt.Sprintf("%v\n%v", swapA, swapB)
|
||||||
|
Loading…
Reference in New Issue
Block a user