-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unboxing issue causing errors in acceptance tests (#10375)
After running acceptance tests against modularized web3 most of the web3 calls were failing. This was caused by a subtle bug caused by unboxing of null Long in `toAccountId` method called by `AccountReadableKVState`. `EntityId.of(id)` fails with nullPointer when id is null. Now just returning null if the id is null. Reproduced with` Then I call estimateGas with associate function for fungible token` acceptance test. * `ContractCallServicePrecompileModificationTest` - adds test to verify calls are passing null auto renew account now. * `EntityIdUtils` - `toAccountId(final Long)` adds null check --------- Signed-off-by: Kristiyan Selveliev <[email protected]>
- Loading branch information
1 parent
9f89e38
commit 2cf94b9
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters