Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/chilled-apples-complain.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@thirdweb-dev/react-core": minor
"@thirdweb-dev/react-core": patch
---

Usage of the `useContractRead` and `useContractWrite` hooks has changed:
Expand Down
2 changes: 1 addition & 1 deletion .changeset/loud-students-bake.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@thirdweb-dev/sdk": minor
"@thirdweb-dev/sdk": patch
---

The signature of all `contract.call` methods has been updated to the following structure:
Expand Down
5 changes: 5 additions & 0 deletions .changeset/plenty-flies-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/chains": patch
---

update chains
5 changes: 5 additions & 0 deletions .changeset/quiet-squids-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/react-core": patch
---

fix solana program query key resolution
5 changes: 5 additions & 0 deletions .changeset/smart-tomatoes-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/storage": patch
---

uploads to IPFS should start significantly faster due to a change in the re-upload detection
2 changes: 1 addition & 1 deletion packages/chains/chains/8080.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
{
"name": "Shardeum Scan",
"url": "https://explorer-liberty10.shardeum.org",
"standard": "none"
"standard": "EIP3091"
}
],
"redFlags": [
Expand Down
2 changes: 1 addition & 1 deletion packages/chains/chains/8081.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
{
"name": "Shardeum Scan",
"url": "https://explorer-liberty20.shardeum.org",
"standard": "none"
"standard": "EIP3091"
}
],
"redFlags": [
Expand Down
2 changes: 1 addition & 1 deletion packages/chains/chains/8082.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
{
"name": "Shardeum Scan",
"url": "https://explorer-sphinx.shardeum.org",
"standard": "none"
"standard": "EIP3091"
}
],
"redFlags": [
Expand Down
3 changes: 2 additions & 1 deletion packages/react-core/src/solana/hooks/program/useProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ export function programQuery<TProgramType extends ProgramType>(
return {
queryKey: neverPersist(
createSOLQueryKeyWithNetwork(
["program-instance", address] as const,
["program-instance", { address, type }] as const,
network || null,
),
),
queryFn: (async () => {
requiredParamInvariant(sdk, "sdk is required");
requiredParamInvariant(address, "Address is required");

// if the type is not passed in explicitly then we'll try to resolve it
if (!type) {
// why do we call `fetchQuery` here instead of calling the sdk directly?
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/src/solana/classes/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class Registry {
const candyMachine = await this.metaplex
.candyMachinesV2()
.findByAddress({ address: new PublicKey(address) });

if (candyMachine) {
return "nft-drop";
}
Expand Down
4 changes: 4 additions & 0 deletions packages/storage/src/common/cid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export async function getCID(
export async function isUploaded(cid: string) {
const res = await fetch(`${DEFAULT_GATEWAY_URLS["ipfs://"][0]}${cid}`, {
method: "HEAD",
headers: {
// tell the gateway to skip fetching from origin in order to fail fast on 404s and just re-upload in those cases
"x-skip-origin": "true",
},
});
return res.ok;
}