Skip to content

Commit

Permalink
Revert "ALL-5473 - Fix SOL duplicate txID on other places"
Browse files Browse the repository at this point in the history
This reverts commit cad73e8.
  • Loading branch information
Hathoriel committed Mar 5, 2024
1 parent cad73e8 commit aa9469f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 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",
"version": "2.2.55",
"version": "2.2.54",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import web3, {
Connection,
LAMPORTS_PER_SOL,
PublicKey,
sendAndConfirmTransaction,
SYSVAR_INSTRUCTIONS_PUBKEY,
Transaction,
TransactionInstruction,
Expand Down Expand Up @@ -240,7 +239,7 @@ export const solanaMarketPlaceService = (

const signers = [web3.generateKeyPair(params.fromPrivateKey)]
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
contractAddress: auctionHouse.toBase58(),
feeAccount: feeAccount.toBase58(),
treasuryAccount: treasuryAccount.toBase58(),
Expand Down Expand Up @@ -316,7 +315,7 @@ export const solanaMarketPlaceService = (

const signers = [web3.generateKeyPair(params.fromPrivateKey)]
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -447,7 +446,7 @@ export const solanaMarketPlaceService = (
}

return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
listingId: receipt.toBase58(),
}
}
Expand Down Expand Up @@ -805,7 +804,7 @@ export const solanaMarketPlaceService = (
}

return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -896,7 +895,7 @@ export const solanaMarketPlaceService = (
}

return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -952,7 +951,7 @@ export const solanaMarketPlaceService = (
const signers = [web3.generateKeyPair(fromPrivateKey)]

return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -1006,7 +1005,7 @@ export const solanaMarketPlaceService = (
const signers = [web3.generateKeyPair(fromPrivateKey)]

return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down
15 changes: 4 additions & 11 deletions packages/blockchain/solana/src/lib/services/solana.nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ import {
VerifySolanaNFTKMS,
} from '@tatumio/api-client'
import { Blockchain } from '@tatumio/shared-core'
import {
Keypair,
PublicKey,
sendAndConfirmTransaction,
SystemProgram,
Transaction,
TransactionInstruction,
} from '@solana/web3.js'
import { Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js'
import {
createInitializeMintInstruction,
createMintToInstruction,
Expand Down Expand Up @@ -89,7 +82,7 @@ const transferSignedTransaction = async (
signers.push(web3.generateKeyPair(body.feePayerPrivateKey))
}
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -285,7 +278,7 @@ const burnSignedTransaction = async (
signers.push(web3.generateKeyPair(body.feePayerPrivateKey))
}
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -335,7 +328,7 @@ const verifySignedTransaction = async (
signers.push(web3.generateKeyPair(body.feePayerPrivateKey))
}
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down
6 changes: 3 additions & 3 deletions packages/blockchain/solana/src/lib/services/solana.spl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SolanaWeb3 } from './solana.web3'
import { ApiServices, ChainDeploySolanaSplKMS, ChainTransferSolanaSplKMS } from '@tatumio/api-client'
import { Blockchain } from '@tatumio/shared-core'
import { Keypair, PublicKey, sendAndConfirmTransaction, SystemProgram, Transaction } from '@solana/web3.js'
import { Keypair, PublicKey, SystemProgram, Transaction } from '@solana/web3.js'
import {
createInitializeMintInstruction,
createMintToInstruction,
Expand Down Expand Up @@ -63,7 +63,7 @@ const transferSignedTransaction = async (
signers.push(web3.generateKeyPair(body.feePayerPrivateKey))
}
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
}
}

Expand Down Expand Up @@ -129,7 +129,7 @@ const deploySignedTransaction = async (
signers.push(web3.generateKeyPair(body.feePayerPrivateKey))
}
return {
txId: await sendAndConfirmTransaction(connection, transaction, signers),
txId: await connection.sendTransaction(transaction, signers),
contractAddress: mint.publicKey.toBase58(),
}
}
Expand Down

0 comments on commit aa9469f

Please sign in to comment.