Skip to content

Commit 839fce1

Browse files
authored
[storage, chains, react-core] - fail fast when making HEAD request to gateway during upload & more (#843)
1 parent 1f2df55 commit 839fce1

File tree

11 files changed

+27
-6
lines changed

11 files changed

+27
-6
lines changed

.changeset/chilled-apples-complain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@thirdweb-dev/react-core": minor
2+
"@thirdweb-dev/react-core": patch
33
---
44

55
Usage of the `useContractRead` and `useContractWrite` hooks has changed:

.changeset/loud-students-bake.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@thirdweb-dev/sdk": minor
2+
"@thirdweb-dev/sdk": patch
33
---
44

55
The signature of all `contract.call` methods has been updated to the following structure:

.changeset/plenty-flies-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/chains": patch
3+
---
4+
5+
update chains

.changeset/quiet-squids-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/react-core": patch
3+
---
4+
5+
fix solana program query key resolution

.changeset/smart-tomatoes-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/storage": patch
3+
---
4+
5+
uploads to IPFS should start significantly faster due to a change in the re-upload detection

packages/chains/chains/8080.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
{
2828
"name": "Shardeum Scan",
2929
"url": "https://explorer-liberty10.shardeum.org",
30-
"standard": "none"
30+
"standard": "EIP3091"
3131
}
3232
],
3333
"redFlags": [

packages/chains/chains/8081.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
{
2828
"name": "Shardeum Scan",
2929
"url": "https://explorer-liberty20.shardeum.org",
30-
"standard": "none"
30+
"standard": "EIP3091"
3131
}
3232
],
3333
"redFlags": [

packages/chains/chains/8082.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
{
2828
"name": "Shardeum Scan",
2929
"url": "https://explorer-sphinx.shardeum.org",
30-
"standard": "none"
30+
"standard": "EIP3091"
3131
}
3232
],
3333
"redFlags": [

packages/react-core/src/solana/hooks/program/useProgram.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ export function programQuery<TProgramType extends ProgramType>(
3939
return {
4040
queryKey: neverPersist(
4141
createSOLQueryKeyWithNetwork(
42-
["program-instance", address] as const,
42+
["program-instance", { address, type }] as const,
4343
network || null,
4444
),
4545
),
4646
queryFn: (async () => {
4747
requiredParamInvariant(sdk, "sdk is required");
4848
requiredParamInvariant(address, "Address is required");
49+
4950
// if the type is not passed in explicitly then we'll try to resolve it
5051
if (!type) {
5152
// why do we call `fetchQuery` here instead of calling the sdk directly?

packages/sdk/src/solana/classes/registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class Registry {
4040
const candyMachine = await this.metaplex
4141
.candyMachinesV2()
4242
.findByAddress({ address: new PublicKey(address) });
43+
4344
if (candyMachine) {
4445
return "nft-drop";
4546
}

0 commit comments

Comments
 (0)