mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-10 19:47:04 +00:00
5 lines
183 B
JavaScript
5 lines
183 B
JavaScript
import web3 from 'Embark/web3'
|
|
|
|
export const toEther = amount => web3.utils.fromWei(amount, 'ether')
|
|
export const toWei = (amount, scale = 'ether') => web3.utils.toWei(amount, scale)
|