Skip to content

Commit

Permalink
add 10% to gas cost estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Dec 6, 2023
1 parent ef7f682 commit f94c099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/node/sendoperation/readonlycall.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func EstimateGasCostExecuteSC(

estimatedGasCost := uint64(result.GasCost)

return estimatedGasCost, nil
return addXPercentage(estimatedGasCost, PercentageGasLimit), nil

Check warning on line 147 in pkg/node/sendoperation/readonlycall.go

View check run for this annotation

Codecov / codecov/patch

pkg/node/sendoperation/readonlycall.go#L145-L147

Added lines #L145 - L147 were not covered by tests
}

// ReadOnlyExecuteSC calls execute_read_only_bytecode jsonrpc method.
Expand Down

0 comments on commit f94c099

Please sign in to comment.