Skip to content

Commit

Permalink
Merge pull request #747 from 0xs34n/docs/types-and-docs
Browse files Browse the repository at this point in the history
cleanup and docs update, string types descriptive
  • Loading branch information
tabaktoni authored Sep 11, 2023
2 parents df38299 + d5f7cae commit 6e997c4
Show file tree
Hide file tree
Showing 22 changed files with 412 additions and 2,230 deletions.
6 changes: 2 additions & 4 deletions src/account/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Account extends Provider implements AccountInterface {
? new Signer(pkOrSigner)
: pkOrSigner;

this.cairoVersion = cairoVersion;
this.cairoVersion = cairoVersion.toString() as CairoVersion;
}

public async getNonce(blockIdentifier?: BlockIdentifier): Promise<Nonce> {
Expand Down Expand Up @@ -299,9 +299,7 @@ export class Account extends Provider implements AccountInterface {
* First check if contract is already declared, if not declare it
* If contract already declared returned transaction_hash is ''.
* Method will pass even if contract is already declared
* @param payload DeclareContractPayload
* @param transactionsDetail (optional) InvocationsDetails = \{\}
* @returns DeclareContractResponse
* @param transactionsDetail (optional)
*/
public async declareIfNot(
payload: DeclareContractPayload,
Expand Down
Loading

0 comments on commit 6e997c4

Please sign in to comment.