Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit ce479a8

Browse files
committed
Fix nil pointer genesis output if no balance left
1 parent e933ffc commit ce479a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/testsuite/snapshotcreator/snapshotcreator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ func CreateSnapshot(opts ...options.Option[Options]) error {
153153
if err != nil {
154154
return ierrors.Wrap(err, "failed to create genesis outputs")
155155
}
156-
genesisTransactionOutputs = append(genesisTransactionOutputs, genesisOutput)
156+
if genesisOutput != nil {
157+
genesisTransactionOutputs = append(genesisTransactionOutputs, genesisOutput)
158+
}
157159

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

0 commit comments

Comments
 (0)