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
4 changes: 2 additions & 2 deletions packages/thirdweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"mipd": "0.0.7",
"node-libs-browser": "2.2.1",
"uqr": "0.1.2",
"viem": "2.10.9"
"viem": "2.13.7"
},
"peerDependencies": {
"@aws-sdk/client-lambda": "^3",
Expand Down Expand Up @@ -310,4 +310,4 @@
"shamir-secret-sharing": "0.0.3",
"vitest": "1.5.0"
}
}
}
8 changes: 7 additions & 1 deletion packages/thirdweb/src/adapters/ethers5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,13 @@ function alignTxToEthers(
}
}

return { ...rest, gasLimit: gas, to, type };
return {
...rest,
gasLimit: gas,
to,
type,
accessList: tx.accessList as ethers5.utils.AccessListish | undefined,
};
}

async function alignTxFromEthers(
Expand Down
6 changes: 5 additions & 1 deletion packages/thirdweb/src/adapters/ethers6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ function alignTxToEthers(
break;
}
}
return { ...rest, type };
return {
...rest,
type,
accessList: tx.accessList as ethers6.AccessListish | null | undefined,
};
}

async function alignTxFromEthers(options: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ vi.mock("../../../transaction/read-contract");
vi.mock("../../../storage/download");

// TODO: Add mocks to these tests instead of using live data
describe("fetchPublishedContract", () => {
describe.runIf(process.env.TW_SECRET_KEY)("fetchPublishedContract", () => {
it("fetches the latest published contract when no version is specified", async () => {
const result = await fetchPublishedContractMetadata({
publisher: "0x4a706de5CE9bfe2f9C37BA945805e396d1810824",
Expand Down
Loading