fix: nil dereference

This commit is contained in:
Cassandra Heart 2024-10-17 03:14:07 -05:00
parent ff8af1a173
commit 5e2c944246
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 2 additions and 1 deletions

View File

@ -36,5 +36,5 @@ func FormatVersion(version []byte) string {
} }
func GetPatchNumber() byte { func GetPatchNumber() byte {
return 0x06 return 0x07
} }

View File

@ -261,6 +261,7 @@ func NewTokenExecutionEngine(
proof = append(proof, input...) proof = append(proof, input...)
proof = binary.BigEndian.AppendUint64(proof, uint64(len(output))) proof = binary.BigEndian.AppendUint64(proof, uint64(len(output)))
proof = append(proof, output...) proof = append(proof, output...)
announce.Announce.InitialProof = &protobufs.MintCoinRequest{}
announce.Announce.InitialProof.Proofs = [][]byte{ announce.Announce.InitialProof.Proofs = [][]byte{
[]byte("pre-dusk"), []byte("pre-dusk"),
make([]byte, 32), make([]byte, 32),