Skip to content

Commit

Permalink
feat: optional abi field for deploy and declare rpc transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivpavici committed Sep 7, 2022
1 parent c276ef3 commit ce62648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export class RpcProvider implements ProviderInterface {
{
program: contractDefinition.program,
entry_points_by_type: contractDefinition.entry_points_by_type,
abi: contractDefinition.abi, // rpc 2.0
},
toHex(toBN(version || 0)),
]).then(this.responseParser.parseDeclareContractResponse);
Expand All @@ -206,6 +207,7 @@ export class RpcProvider implements ProviderInterface {
{
program: contractDefinition.program,
entry_points_by_type: contractDefinition.entry_points_by_type,
abi: contractDefinition.abi, // rpc 2.0
},
]).then(this.responseParser.parseDeployContractResponse);
}
Expand Down

0 comments on commit ce62648

Please sign in to comment.