Skip to content

Commit

Permalink
runtime/wasm: Remove commented-out code, update note about BigInt rep…
Browse files Browse the repository at this point in the history
…resentation
  • Loading branch information
Jannis Pohlmann committed Nov 2, 2018
1 parent fca22d8 commit 27bf93a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions runtime/wasm/src/asc_abi/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,16 @@ pub(crate) struct AscLogParam {
impl AscType for AscLogParam {}

pub(crate) type Bytes = Uint8Array;
/// Big ints are represented in two's complement and in little-endian order.

/// Big ints are represented using signed number representation. Note: This differs
/// from how U256 and U128 are represented (they use two's complement). So whenever
/// we convert between them, we need to make sure we handle signed and unsigned
/// cases correctly.
pub(crate) type AscBigInt = Uint8Array;

pub(crate) type AscAddress = Uint8Array;
pub(crate) type AscH160 = Uint8Array;
pub(crate) type AscH256 = Uint8Array;
//pub(crate) type AscU128 = Uint64Array;
//pub(crate) type AscU256 = Uint64Array;

pub(crate) type AscLogParamArray = Array<AscPtr<AscLogParam>>;

Expand Down

0 comments on commit 27bf93a

Please sign in to comment.