casper-node icon indicating copy to clipboard operation
casper-node copied to clipboard

Remove unchecked arithmetic from Gas and Motes

Open mpapierski opened this issue 3 years ago • 1 comments

We should remove unchecked operators such as Add, Sub, Div, etc., from Gas and Motes types. Subtle and hard to detect bugs can happen with uncareful use of this. All operations on Gas and Motes should only be through checked_add. We also don't need to bring num_traits here as it requires unchecked traits implemented.

mpapierski avatar Sep 21 '21 16:09 mpapierski