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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade starknetjs to 4.16.0 #797

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
prettier
  • Loading branch information
maciejka committed Dec 12, 2022
commit a798fb9350d3d1412310f6f839668538181de7fb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs'
import { Account, Contract, ec, json,number, SequencerProvider } from 'starknet'
import { Account, Contract, ec, json, number, SequencerProvider } from 'starknet'
const { toBN } = number
import { expect } from 'earljs'

Expand Down
2 changes: 1 addition & 1 deletion packages/target-starknet/src/StarknetTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class StarknetTarget extends TypeChainTarget {
? 'type CallOptions = { blockIdentifier: EstimateFeeDetails["blockIdentifier"] }'
: '',
resultWithoutImports.indexOf('BigNumberish') >= 0 ? 'type BigNumberish = number.BigNumberish' : '',
resultWithoutImports.indexOf('BN') >= 0 ? 'type BN = ReturnType<typeof number.toBN>' : ''
resultWithoutImports.indexOf('BN') >= 0 ? 'type BN = ReturnType<typeof number.toBN>' : '',
].join('\n')

const result = `
Expand Down