mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-04 07:35:02 +00:00
add hexToDecimal conversion
This commit is contained in:
parent
81ca3ffa31
commit
67084487f0
@ -22,11 +22,12 @@ const lookups = {
|
||||
}
|
||||
}
|
||||
|
||||
const hexToDecimal = hex => Number(parseInt(hex, 16))
|
||||
const formatVaultEvent = async event => {
|
||||
const { returnValues } = event
|
||||
return {
|
||||
...returnValues,
|
||||
ref: Number(returnValues.ref.slice(2))
|
||||
ref: hexToDecimal(returnValues.ref)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user