Minor Changes
-
#4527
b76a82c
Thanks @joaquim-verges! - Update React Native dependencies and add support for React Native 0.75 -
#4499
fe1ff63
Thanks @joaquim-verges! - Breaking Change indeployPublishedContract
Contract constructor/ initializer params are now passed as a single object instead of an array. The object should have the same shape as the params defined in the contract's ABI.
Example of old way (using
constructorParams
orinitializeParams
):const address = await deployPublishedContract({ account, chain, client, contractId: "Airdrop", contractParams: [TEST_ACCOUNT_A.address, ""], });
New way (using
contractParams
):const address = await deployPublishedContract({ account, chain, client, contractId: "Airdrop", contractParams: { defaultAdmin: TEST_ACCOUNT_A.address, contractURI: "", }, });
-
#4528
c96e2d9
Thanks @joaquim-verges! - Handle salt parameter for deterministic deploys of published contractsYou can now pass a salt parameter to the
deployPublishedContract
function to deploy a contract deterministically.const address = await deployPublishedContract({ client, chain, account, contractId: "Airdrop", contractParams: { defaultAdmin: "0x...", contractURI: "ipfs://...", }, salt: "test", // <--- deterministic deploy });
This also works for unpublished contracts, via the
deployContract
function.const address = await deployContract({ client, chain, account, bytecode: "0x...", abi: contractAbi, constructorParams: { param1: "value1", param2: 123, }, salt: "test", // <--- deterministic deploy });
-
#4541
0596fa2
Thanks @gregfromstl! - Adds getUsers function to query users on the serverimport { getUser } from "thirdweb/wallets"; const user = await getUser({ client, walletAddress: "0x123...", });
Patch Changes
-
#4503
8636c28
Thanks @jnsdls! - fix erc721 delayed reveal detection -
#4544
40f01e5
Thanks @joaquim-verges! - Allow smart wallet transactions to be sent in parallel -
#4543
b4e1491
Thanks @gregfromstl! - Display social profiles for linked accounts -
#4507
6353cb7
Thanks @joaquim-verges! - Fix erc721 delayed reveal simulation error