From 5e2c944246060b35ef1bfee7f0881de16bbd8996 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Thu, 17 Oct 2024 03:14:07 -0500 Subject: [PATCH] fix: nil dereference --- node/config/version.go | 2 +- node/execution/intrinsics/token/token_execution_engine.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/node/config/version.go b/node/config/version.go index 1e59131..aff6922 100644 --- a/node/config/version.go +++ b/node/config/version.go @@ -36,5 +36,5 @@ func FormatVersion(version []byte) string { } func GetPatchNumber() byte { - return 0x06 + return 0x07 } diff --git a/node/execution/intrinsics/token/token_execution_engine.go b/node/execution/intrinsics/token/token_execution_engine.go index 6399121..bdbeca7 100644 --- a/node/execution/intrinsics/token/token_execution_engine.go +++ b/node/execution/intrinsics/token/token_execution_engine.go @@ -261,6 +261,7 @@ func NewTokenExecutionEngine( proof = append(proof, input...) proof = binary.BigEndian.AppendUint64(proof, uint64(len(output))) proof = append(proof, output...) + announce.Announce.InitialProof = &protobufs.MintCoinRequest{} announce.Announce.InitialProof.Proofs = [][]byte{ []byte("pre-dusk"), make([]byte, 32),