mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
parent
6f138031c6
commit
b7a28df97e
@ -111,7 +111,10 @@ function getAccessDetailsFromTokenPrice(
|
||||
// the last valid order should be the last reuse order tx id if there is one
|
||||
accessDetails.validOrderTx = reusedOrder?.tx || order?.tx
|
||||
}
|
||||
accessDetails.templateId = tokenPrice.templateId
|
||||
accessDetails.templateId =
|
||||
typeof tokenPrice.templateId === 'string'
|
||||
? parseInt(tokenPrice.templateId)
|
||||
: tokenPrice.templateId
|
||||
// TODO: fetch order fee from sub query
|
||||
accessDetails.publisherMarketOrderFee = tokenPrice?.publishMarketFeeAmount
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user