Open
Description
An inefficiency has been identified in the GrantSharesBridgeAdapter.java contract code where redundant null value validation is performed. The method implements explicit null value checks before calling the isValid() method, even though this method already incorporates null validation internally.
This redundancy in validations generates unnecessary gas consumption during contract execution on the blockchain. In the context of the N3 blockchain, where each computational operation has an associated gas cost, eliminating these duplicate validations could result in a significant reduction in transaction execution costs.
References
• neow3j/devpack/Hash160.java#L68-L85
Source Code References
Metadata
Metadata
Assignees
Labels
No labels