Skip to content

Commit

Permalink
add zero check
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Feb 20, 2024
1 parent f4e1161 commit 3da1647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (v *vm) Execute(txns []core.Transaction, declaredClasses []core.Class, bloc
}
daGasPriceFRIBytes := daGasPriceFRI.Bytes()

if gasPriceWEI.IsZero() {
if gasPriceWEI.IsZero() || gasPriceSTRK.IsZero() || daGasPriceWEI.IsZero() || daGasPriceFRI.IsZero() {
return nil, nil, errors.New("gas prices must be non-zero")
}
fmt.Println("gasPriceWEIBytes", gasPriceWEIBytes, gasPriceWEI.String())
Expand Down

0 comments on commit 3da1647

Please sign in to comment.