Skip to content

Commit

Permalink
Fix nil pointer genesis output if no balance left
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed May 17, 2024
1 parent e933ffc commit ce479a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/testsuite/snapshotcreator/snapshotcreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ func CreateSnapshot(opts ...options.Option[Options]) error {
if err != nil {
return ierrors.Wrap(err, "failed to create genesis outputs")
}
genesisTransactionOutputs = append(genesisTransactionOutputs, genesisOutput)
if genesisOutput != nil {
genesisTransactionOutputs = append(genesisTransactionOutputs, genesisOutput)
}

accountOutputs, err := createGenesisAccounts(api, opt.Accounts)
if err != nil {
Expand Down

0 comments on commit ce479a8

Please sign in to comment.