Closed semuxgo closed 5 years ago
The base unit of semux is nanoSEM while EVM has wei. We need to add conversion to ensure contracts are reading the correct value.
nanoSEM
wei
For instance, the value should be multiplied by 1_000_000_000 in https://github.com/semuxproject/semux-core/blob/5442ee23f31b92d611c7d09630745c489dca016e/src/main/java/org/semux/vm/client/SemuxTransaction.java#L47
1_000_000_000
We need to examine the whole codebase to ensure the conversation is in place when required.
Done!
The base unit of semux is
nanoSEM
while EVM haswei
. We need to add conversion to ensure contracts are reading the correct value.For instance, the value should be multiplied by
1_000_000_000
in https://github.com/semuxproject/semux-core/blob/5442ee23f31b92d611c7d09630745c489dca016e/src/main/java/org/semux/vm/client/SemuxTransaction.java#L47We need to examine the whole codebase to ensure the conversation is in place when required.