gnosis / gnosis/solidity-arithmetic

return wrong value

Open
#3 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

for the

function div256_128By256(uint a21, uint a0, uint b) public pure returns (uint q, uint r)

If we we b=2^128, a0=0, a21=2^128

then the output is: q= 2^129 . I think the output should be 2^128

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.