Skip to content

WASM/Debugger: support Uint256 in inspection commands

Pierrick Couderc requested to merge picdc@wasm-debugger-int256 into master

Context

Improves the inspection commands to handle Uint128 and Uint256, as the EVM Kernel will use Int256 to represent assets.

Also simplifies "slightly" integer decoding.

Manually testing the MR

In the debugger with the EVM kernel, with any inputs:

> load inputs
...
> step inbox
...
> show key /eth_accounts/6471a723296395cf1dcc568941affd7a390f94ce/balance as u256
9999000000000000000000

And for the other integer representations, you can reuse the kernel and commands from !7464 (merged) "testing" section

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Pierrick Couderc

Merge request reports