Skip to content

Commit

Permalink
Merge pull request #46 from ensdomains/fix/get-price
Browse files Browse the repository at this point in the history
fix: get price response
  • Loading branch information
TateB authored Sep 4, 2022
2 parents dfa4966 + 7a59451 commit 4a4546e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ensjs/src/functions/getPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ const decode = async (
) as [BigNumber]
base = price.sub(premium)
} else {
;[base, premium] = controller.interface.decodeFunctionData(
;[[base, premium]] = controller.interface.decodeFunctionResult(
'rentPrice',
data,
) as [BigNumber, BigNumber]
)
}
return {
base,
Expand Down

0 comments on commit 4a4546e

Please sign in to comment.