Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup and docs update, string types descriptive #747

Merged
merged 7 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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