Skip to content

Commit 53d6578

Browse files
committed
fix: remove redundant _abi from declareContract()
1 parent ca6203f commit 53d6578

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/provider/default.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ export class Provider implements ProviderInterface {
316316
* @param contract - a json object containing the compiled contract
317317
* @returns a confirmation of sending a transaction on the starknet contract
318318
*/
319-
public declareContract(
320-
payload: DeclareContractPayload,
321-
_abi?: Abi
322-
): Promise<AddTransactionResponse> {
319+
public declareContract(payload: DeclareContractPayload): Promise<AddTransactionResponse> {
323320
const parsedContract =
324321
typeof payload.contract === 'string'
325322
? (parse(payload.contract) as CompiledContract)

www/docs/API/provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Gets the transaction trace from a tx hash.
198198

199199
<hr/>
200200

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

203203
Declares a contract on Starknet
204204

0 commit comments

Comments
 (0)