Skip to content

Commit

Permalink
Update warp log gas cost to reflect num topics (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored Dec 20, 2023
1 parent dd2d956 commit 95030da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precompile/contracts/warp/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
// Note: using trie write for the gas cost results in a conservative overestimate since the message is stored in a
// flat database that can be cleaned up after a period of time instead of the EVM trie.

SendWarpMessageGasCost uint64 = params.LogGas + 4*params.LogTopicGas + AddWarpMessageGasCost + contract.WriteGasCostPerSlot
SendWarpMessageGasCost uint64 = params.LogGas + 3*params.LogTopicGas + AddWarpMessageGasCost + contract.WriteGasCostPerSlot
// SendWarpMessageGasCostPerByte cost accounts for producing a signed message of a given size
SendWarpMessageGasCostPerByte uint64 = params.LogDataGas

Expand Down

0 comments on commit 95030da

Please # to comment.