axone-protocol / axoned

⛓️ Axone blockchain 💫
https://axone.xyz
Apache License 2.0
164 stars 127 forks source link

🐛 Use configuration value for default gas consumption in 'lookupCost' function #757

Closed coderabbitai[bot] closed 1 month ago

coderabbitai[bot] commented 2 months ago

As requested by @ccamel, we need to update the lookupCost function to reference the module's default_predicate_cost configuration value instead of using a hard-coded constant. This change will ensure that the gas cost for unregistered (user-defined) predicates is configurable according to the module's parameters.

PR URL: https://github.com/axone-protocol/axoned/pull/756

Comment URL: https://github.com/axone-protocol/axoned/pull/756#discussion_r1774589991

Requested by: @ccamel