Skip to content

Commit

Permalink
chore: update starknet utxn struct data type
Browse files Browse the repository at this point in the history
  • Loading branch information
vrockz747 committed Dec 16, 2024
1 parent cdf0288 commit ea89789
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getUserVerifiedPublicKey = async (
assert(params.walletId, 'walletId should be defined');
assert(params.derivationPath, 'derivationPath should be defined');
assert(
params.derivationPath.length > 3,
params.derivationPath.length > 5,
'derivationPath should be greater than 3',
);

Expand Down
4 changes: 2 additions & 2 deletions packages/app-starknet/tests/03.signTxn/__fixtures__/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const commonParams = {
calldata: { value: [new Uint8Array([0x0])] },
chainId: new Uint8Array([0x0]),
nonce: new Uint8Array([0x20]),
accountDeploymentData: new Uint8Array([0x0]),
accountDeploymentData: [new Uint8Array([0x0])],
nonceDataAvailabilityMode: new Uint8Array([0x0]),
feeDataAvailabilityMode: new Uint8Array([0x0]),
resourceBound: {
Expand All @@ -46,7 +46,7 @@ const commonParams = {
},
},
tip: new Uint8Array([0x0]),
paymasterData: new Uint8Array([0x0]),
paymasterData: [new Uint8Array([0x0])],
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const commonParams = {
calldata: { value: [new Uint8Array([0x0])] },
chainId: new Uint8Array([0x0]),
nonce: new Uint8Array([0x20]),
accountDeploymentData: new Uint8Array([0x0]),
accountDeploymentData: [new Uint8Array([0x0])],
nonceDataAvailabilityMode: new Uint8Array([0x0]),
feeDataAvailabilityMode: new Uint8Array([0x0]),
resourceBound: {
Expand All @@ -46,7 +46,7 @@ const commonParams = {
},
},
tip: new Uint8Array([0x0]),
paymasterData: new Uint8Array([0x0]),
paymasterData: [new Uint8Array([0x0])],
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions packages/app-starknet/tests/03.signTxn/__fixtures__/valid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const sendWithSerialize: ISignTxnTestCase = {
calldata: { value: [new Uint8Array([0x0])] },
chainId: new Uint8Array([0x0]),
nonce: new Uint8Array([0x20]),
accountDeploymentData: new Uint8Array([0x0]),
accountDeploymentData: [new Uint8Array([0x0])],
nonceDataAvailabilityMode: new Uint8Array([0x0]),
feeDataAvailabilityMode: new Uint8Array([0x0]),
resourceBound: {
Expand All @@ -43,7 +43,7 @@ const sendWithSerialize: ISignTxnTestCase = {
},
},
tip: new Uint8Array([0x0]),
paymasterData: new Uint8Array([0x0]),
paymasterData: [new Uint8Array([0x0])],
},
},
},
Expand Down Expand Up @@ -85,7 +85,7 @@ const sendWithSerialize: ISignTxnTestCase = {
calldata: { value: [new Uint8Array([0x0])] },
chainId: new Uint8Array([0x0]),
nonce: new Uint8Array([0x20]),
accountDeploymentData: new Uint8Array([0x0]),
accountDeploymentData: [new Uint8Array([0x0])],
nonceDataAvailabilityMode: new Uint8Array([0x0]),
feeDataAvailabilityMode: new Uint8Array([0x0]),
resourceBound: {
Expand All @@ -99,7 +99,7 @@ const sendWithSerialize: ISignTxnTestCase = {
},
},
tip: new Uint8Array([0x0]),
paymasterData: new Uint8Array([0x0]),
paymasterData: [new Uint8Array([0x0])],
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion submodules/common

0 comments on commit ea89789

Please sign in to comment.