We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ed327 commit fca22d8Copy full SHA for fca22d8
graph/src/data/store/scalar.rs
@@ -82,6 +82,11 @@ impl From<i32> for BigInt {
82
}
83
84
impl From<U128> for BigInt {
85
+ /// This implementation assumes that U128 represents an unsigned U128,
86
+ /// and not a signed U128 (aka int128 in Solidity). Right now, this is
87
+ /// all we need (for block numbers). If it ever becomes necessary to
88
+ /// handle signed U128s, we should add the same
89
+ /// `{to,from}_{signed,unsigned}_u128` methods that we have for U256.
90
fn from(n: U128) -> BigInt {
91
let mut bytes: [u8; 16] = [0; 16];
92
n.to_little_endian(&mut bytes);
0 commit comments