mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix test fn
This commit is contained in:
parent
0bd720a042
commit
4e954572b4
@ -128,10 +128,13 @@ export async function calculateActiveTemplateIndex(
|
||||
if (isTemplateID) {
|
||||
const id = await erc20Template.connect(owner).getId()
|
||||
console.log('templateId: ' + id)
|
||||
if (tokenTemplate.isActive && id.toString() === template) {
|
||||
if (tokenTemplate.isActive && id.toString() === template.toString()) {
|
||||
return i
|
||||
}
|
||||
} else if (tokenTemplate.isActive && tokenTemplate.templateAddress === template) {
|
||||
} else if (
|
||||
tokenTemplate.isActive &&
|
||||
tokenTemplate.templateAddress === template.toString()
|
||||
) {
|
||||
return i
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user