Skip to content

Commit

Permalink
Add nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 22, 2025
1 parent 26b4ac5 commit a5338d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func tipAndResourcesHash(tip uint64, resourceBounds map[Resource]ResourceBounds)
}

// l1_data_gas resource bounds were added in 0.13.4
if bounds, ok := resourceBounds[ResourceL1DataGas]; ok {
if bounds, ok := resourceBounds[ResourceL1DataGas]; ok && bounds.MaxPricePerUnit != nil {
l1DataBounds := new(felt.Felt).SetBytes(bounds.Bytes(ResourceL1DataGas))
elems = append(elems, l1DataBounds)
}
Expand Down

0 comments on commit a5338d2

Please sign in to comment.