Skip to content

Commit

Permalink
fix: remove redundant _abi from declareContract()
Browse files Browse the repository at this point in the history
  • Loading branch information
yoga-braavos committed Jun 15, 2022
1 parent ca6203f commit 53d6578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/provider/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,7 @@ export class Provider implements ProviderInterface {
* @param contract - a json object containing the compiled contract
* @returns a confirmation of sending a transaction on the starknet contract
*/
public declareContract(
payload: DeclareContractPayload,
_abi?: Abi
): Promise<AddTransactionResponse> {
public declareContract(payload: DeclareContractPayload): Promise<AddTransactionResponse> {
const parsedContract =
typeof payload.contract === 'string'
? (parse(payload.contract) as CompiledContract)
Expand Down
2 changes: 1 addition & 1 deletion www/docs/API/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Gets the transaction trace from a tx hash.

<hr/>

provider.**declareContract**(payload [ , abi ]) => _Promise < AddTransactionResponse >_
provider.**declareContract**(payload) => _Promise < AddTransactionResponse >_

Declares a contract on Starknet

Expand Down

0 comments on commit 53d6578

Please sign in to comment.