Skip to content

Commit 98b42ed

Browse files
committed
change sig hash to base64
1 parent 66b17c5 commit 98b42ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/lending/types/dlc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package types
22

33
import (
44
"bytes"
5+
"encoding/base64"
56
"encoding/hex"
67

78
"github.com/btcsuite/btcd/btcec/v2/schnorr"
@@ -351,7 +352,7 @@ func GetLiquidationCetSigHashes(dlcMeta *DLCMeta) ([]string, error) {
351352
return nil, err
352353
}
353354

354-
sigHashes = append(sigHashes, hex.EncodeToString(sigHash))
355+
sigHashes = append(sigHashes, base64.StdEncoding.EncodeToString(sigHash))
355356
}
356357

357358
return sigHashes, nil

0 commit comments

Comments
 (0)