Skip to content

Commit 60d01b9

Browse files
committed
chore: bump dojo.c
1 parent d8f7035 commit 60d01b9

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

packages/create-burner/src/manager/prefundAccount.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
AccountInterface,
3+
Call,
34
CallData,
45
TransactionFinalityStatus,
56
} from "starknet";
@@ -25,7 +26,7 @@ export const prefundAccount = async (
2526
): Promise<any> => {
2627
try {
2728
// Configure the options for the transfer transaction
28-
const transferOptions = {
29+
const transferOptions: Call = {
2930
contractAddress: feeTokenAddress,
3031
entrypoint: "transfer",
3132
calldata: CallData.compile([address, prefundAmount, "0x0"]),

packages/predeployed-connector/src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ class PredeployedWallet implements StarknetWindowObject {
128128
data: "wallet_addStarknetChain not implemented",
129129
} as Errors.UNEXPECTED_ERROR;
130130

131-
case "wallet_switchStarknetChain":
132-
throw {
133-
code: 63,
134-
message: "An unexpected error occurred",
135-
data: "wallet_switchStarknetChain not implemented",
136-
} as Errors.UNEXPECTED_ERROR;
137-
138131
case "wallet_requestChainId":
139132
if (!this.account) {
140133
throw {
@@ -194,6 +187,8 @@ class PredeployedWallet implements StarknetWindowObject {
194187
return [];
195188
case "wallet_supportedWalletApi":
196189
return [];
190+
case "wallet_switchStarknetChain":
191+
return new Promise((resolve) => resolve(true));
197192
default:
198193
throw {
199194
code: 63,

packages/sdk/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
dist
2+
dist
3+
tsup.node.bundled_*

0 commit comments

Comments
 (0)