Skip to content

Commit

Permalink
Update affiliateAccount arg in read me
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthiago committed Jan 27, 2023
1 parent 8c9c913 commit d86c4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/buy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ import { useWallet } from '@mintbase-js/react';
import { execute, burn, BuyArgs } from '@mintbase-js/sdk';


export const BuyComponent = ({ contractAddress, price, tokenId, referrerId, marketId }:BuyArgs): JSX.Element => {
export const BuyComponent = ({ contractAddress, price, tokenId, affiliateAccount, marketId }:BuyArgs): JSX.Element => {

const { selector } = useWallet();

const handleBuy = async (): Promise<void> => {

const wallet = await selector.wallet();

const buyArgs = {contractAddress: contractAddress, tokenId:tokenId, referrerId:referrerId , marketId:marketId, price:price }
const buyArgs = {contractAddress: contractAddress, tokenId: tokenId, affiliateAccount: affiliateAccount , marketId:marketId, price:price }

await execute(
{wallet},
Expand Down

0 comments on commit d86c4cf

Please sign in to comment.