File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,11 @@ func UtxoValidateCollateralContainsNonAda(
153
153
// Check if all collateral assets are accounted for in the collateral return
154
154
collReturn := tx .CollateralReturn ()
155
155
if collReturn != nil {
156
- if collReturn .Assets ().Compare (& totalAssets ) {
157
- return nil
156
+ collReturnAssets := collReturn .Assets ()
157
+ if collReturnAssets != nil {
158
+ if collReturnAssets .Compare (& totalAssets ) {
159
+ return nil
160
+ }
158
161
}
159
162
}
160
163
return alonzo.CollateralContainsNonAdaError {
Original file line number Diff line number Diff line change @@ -178,8 +178,11 @@ func UtxoValidateCollateralContainsNonAda(
178
178
// Check if all collateral assets are accounted for in the collateral return
179
179
collReturn := tx .CollateralReturn ()
180
180
if collReturn != nil {
181
- if collReturn .Assets ().Compare (& totalAssets ) {
182
- return nil
181
+ collReturnAssets := collReturn .Assets ()
182
+ if collReturnAssets != nil {
183
+ if collReturnAssets .Compare (& totalAssets ) {
184
+ return nil
185
+ }
183
186
}
184
187
}
185
188
return alonzo.CollateralContainsNonAdaError {
You can’t perform that action at this time.
0 commit comments