Skip to content

Commit

Permalink
Hotfix/harmony one: fix marketplace and auction bytecode (#296)
Browse files Browse the repository at this point in the history
* fixing provenance mint no cashback

* fixing marketplace & auction bytecode
  • Loading branch information
RachitGod authored Jan 10, 2022
1 parent dc2d8c9 commit bc78d72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.30.8",
"version": "1.30.9",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
9 changes: 5 additions & 4 deletions src/transaction/one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ export const prepareOneDeployMarketplaceListingSignedTransaction = async (testne
await validateBody(body, DeployMarketplaceListing);
const client = await prepareOneClient(testnet, provider, body.fromPrivateKey);
// @ts-ignore
const contract = new client.eth.Contract(auction.abi);
// const contract = new client.eth.Contract(auction.abi);
const contract = new client.eth.Contract(listing.abi);
const data = contract.deploy({
data: auction.data,
data: listing.data,
arguments: [body.marketplaceFee, body.feeRecipient]
}).encodeABI();
return prepareGeneralTx(client, testnet, body.fromPrivateKey, body.signatureId, undefined, undefined, body.nonce, data,
Expand All @@ -257,9 +258,9 @@ export const prepareOneDeployAuctionSignedTransaction = async (testnet: boolean,
await validateBody(body, DeployNftAuction);
const client = await prepareOneClient(testnet, provider, body.fromPrivateKey);
// @ts-ignore
const contract = new client.eth.Contract(listing.abi);
const contract = new client.eth.Contract(auction.abi);
const data = contract.deploy({
data: listing.data,
data: auction.data,
arguments: [body.auctionFee, body.feeRecipient]
}).encodeABI();
return prepareGeneralTx(client, testnet, body.fromPrivateKey, body.signatureId, undefined, undefined, body.nonce, data,
Expand Down

0 comments on commit bc78d72

Please sign in to comment.