Skip to content

Commit

Permalink
chore: fix missing access to requestParams in call to revamped rpc (#401
Browse files Browse the repository at this point in the history
)
  • Loading branch information
khanti42 authored Oct 23, 2024
1 parent 8bf8463 commit a834beb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/starknet-snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {

case 'starkNet_signDeclareTransaction':
return await signDeclareTransaction.execute(
apiParams as unknown as SignDeclareTransactionParams,
apiParams.requestParams as unknown as SignDeclareTransactionParams,
);

case 'starkNet_signDeployAccountTransaction':
Expand All @@ -196,7 +196,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {

case 'starkNet_verifySignedMessage':
return await verifySignature.execute(
apiParams as unknown as VerifySignatureParams,
apiParams.requestParams as unknown as VerifySignatureParams,
);

case 'starkNet_getErc20TokenBalance':
Expand Down Expand Up @@ -278,15 +278,15 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => {

case 'starkNet_declareContract':
return await declareContract.execute(
apiParams as unknown as DeclareContractParams,
apiParams.requestParams as unknown as DeclareContractParams,
);

case 'starkNet_getStarkName':
return await getStarkName(apiParams);

case 'starkNet_getDeploymentData':
return await getDeploymentData.execute(
apiParams as unknown as GetDeploymentDataParams,
apiParams.requestParams as unknown as GetDeploymentDataParams,
);

default:
Expand Down

0 comments on commit a834beb

Please sign in to comment.