fix: send collectible token-id hex conversion (#21094)
This commit is contained in:
parent
449b2808e6
commit
2cb50fcbf6
|
@ -731,8 +731,8 @@
|
|||
:route route
|
||||
:token-address token-address
|
||||
:token-id (if collectible
|
||||
(money/to-hex
|
||||
(js/parseInt token-id))
|
||||
(utils.hex/number-to-hex
|
||||
token-id)
|
||||
token-id)
|
||||
:data data
|
||||
:eth-transfer? eth-transfer?})]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
(ns utils.hex
|
||||
(:require
|
||||
[clojure.string :as string]
|
||||
[native-module.core :as native-module]
|
||||
[schema.core :as schema]))
|
||||
|
||||
(defn normalize-hex
|
||||
|
@ -25,3 +26,14 @@
|
|||
[:=>
|
||||
[:cat :string]
|
||||
:string])
|
||||
|
||||
(defn number-to-hex
|
||||
[value]
|
||||
(->> value
|
||||
native-module/number-to-hex
|
||||
prefix-hex))
|
||||
|
||||
(schema/=> number-to-hex
|
||||
[:=>
|
||||
[:cat [:or :string :int]]
|
||||
:string])
|
||||
|
|
Loading…
Reference in New Issue