Skip to content

Commit

Permalink
removed unnecessary toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
dabit3 committed Jul 9, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6aed9d0 commit a6a3858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/create-item.js
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ export default function Home() {
let value = event.args[2]
let tokenId = value.toNumber()

const price = ethers.utils.parseUnits(formInput.price.toString(), 'ether')
const price = ethers.utils.parseUnits(formInput.price, 'ether')

/* then list the item for sale on the marketplace */
contract = new ethers.Contract(nftmarketaddress, Market.abi, signer)

0 comments on commit a6a3858

Please sign in to comment.