semuxproject / semux-core

Semux Core
https://www.semux.org
MIT License
76 stars 31 forks source link

Match semux value with EVM value #177

Closed semuxgo closed 5 years ago

semuxgo commented 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.

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

We need to examine the whole codebase to ensure the conversation is in place when required.

semuxgo commented 5 years ago

Done!