Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property '#private' in type 'TransactionBlock' refers to a different member that cannot be accessed from within type 'TransactionBlock'. #248

Open
MyHackInfo opened this issue Oct 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@MyHackInfo
Copy link

`

async function handleSignAndExecuteTxBlock() {

if (!wallet.connected) return;

// define a programmable transaction
const tx = new TransactionBlock();

const packageObjectId = "0xXXX";

tx.moveCall({
  target: `${packageObjectId}::nft::mint`,
  arguments: [tx.pure("Example NFT")],
});

try {
  // execute the programmable transaction
  const resData = await wallet.signAndExecuteTransactionBlock({
    transactionBlock: tx,
  });
  console.log("nft minted successfully!", resData);
  alert("Congrats! your nft is minted!");
} catch (e) {
  console.error("nft mint failed", e);
}

}
`
error

@maige-app maige-app bot added bug Something isn't working dependencies Pull requests that update a dependency file labels Oct 4, 2023
@bruceeewong bruceeewong self-assigned this Oct 7, 2023
@bruceeewong
Copy link
Contributor

This issue should be the version mismatch between @suiet/wallet-kit and @mysten/sui.js. So you could try to check these two versions and match them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants