Skip to content

Commit 08bd65c

Browse files
committed
feat: remove version 0 invoke and declare
1 parent dbed81b commit 08bd65c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/provider/rpc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class RpcProvider implements ProviderInterface {
332332
abi: contractDefinition.abi, // rpc 2.0
333333
},
334334
type: RPC.TransactionType.DECLARE,
335-
version: toHex(details.version || 0),
335+
version: '0x1',
336336
max_fee: toHex(details.maxFee || 0),
337337
signature: signatureToHexArray(signature),
338338
sender_address: senderAddress,
@@ -372,7 +372,7 @@ export class RpcProvider implements ProviderInterface {
372372
calldata: parseCalldata(functionInvocation.calldata),
373373
type: RPC.TransactionType.INVOKE,
374374
max_fee: toHex(details.maxFee || 0),
375-
version: toHex(details.version || 1),
375+
version: '0x1',
376376
signature: signatureToHexArray(functionInvocation.signature),
377377
nonce: toHex(details.nonce),
378378
},

src/provider/sequencer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export class SequencerProvider implements ProviderInterface {
364364
signature: signatureToDecimalArray(functionInvocation.signature),
365365
nonce: toHex(details.nonce),
366366
max_fee: toHex(details.maxFee || 0),
367-
version: toHex(details.version || 1),
367+
version: '0x1',
368368
}).then(this.responseParser.parseInvokeFunctionResponse);
369369
}
370370

0 commit comments

Comments
 (0)