Skip to content

Commit

Permalink
feat: remove version 0 invoke and declare
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Mar 16, 2023
1 parent dbed81b commit 08bd65c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class RpcProvider implements ProviderInterface {
abi: contractDefinition.abi, // rpc 2.0
},
type: RPC.TransactionType.DECLARE,
version: toHex(details.version || 0),
version: '0x1',
max_fee: toHex(details.maxFee || 0),
signature: signatureToHexArray(signature),
sender_address: senderAddress,
Expand Down Expand Up @@ -372,7 +372,7 @@ export class RpcProvider implements ProviderInterface {
calldata: parseCalldata(functionInvocation.calldata),
type: RPC.TransactionType.INVOKE,
max_fee: toHex(details.maxFee || 0),
version: toHex(details.version || 1),
version: '0x1',
signature: signatureToHexArray(functionInvocation.signature),
nonce: toHex(details.nonce),
},
Expand Down
2 changes: 1 addition & 1 deletion src/provider/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export class SequencerProvider implements ProviderInterface {
signature: signatureToDecimalArray(functionInvocation.signature),
nonce: toHex(details.nonce),
max_fee: toHex(details.maxFee || 0),
version: toHex(details.version || 1),
version: '0x1',
}).then(this.responseParser.parseInvokeFunctionResponse);
}

Expand Down

0 comments on commit 08bd65c

Please sign in to comment.