Skip to content

Commit

Permalink
Merge pull request #4 from argentlabs/develop
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
gergold authored Oct 6, 2023
2 parents ac2db3e + a5e73a6 commit 109c51b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: pnpm/action-setup@v2
name: Install pnpm
name: install-pnpm
id: pnpm-install
with:
version: 8
Expand All @@ -24,7 +26,9 @@ jobs:

- run: pnpm install --frozen-lockfile
- run: pnpm run build
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: semantic-release
run: npx semantic-release --debug true --dry-run false
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ await disconnect({ clearLastWallet: true })

## 📕 Guides

Guides can be found [here](https://www.starknetkit.com/docs/getting-started)
Guides can be found [here](https://www.starknetkit.com/docs)

## ✏️ Contributing

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starknetkit",
"version": "1.0.0",
"version": "1.0.2",
"repository": "github:argentlabs/starknetkit",
"private": false,
"browser": {
Expand Down
3 changes: 2 additions & 1 deletion src/connectors/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
StarknetWindowObject,
} from "get-starknet-core"
import type { AccountInterface } from "starknet"
import { constants } from "starknet"
import { DEFAULT_PROJECT_ID } from "../../constants"
import {
ConnectorNotConnectedError,
Expand All @@ -15,7 +16,7 @@ import { Connector } from "../connector"
export interface ArgentMobileConnectorOptions {
dappName?: string
projectId?: string
chainId?: "SN_GOERLI" | "SN_GOERLI2" | "SN_MAINNET"
chainId?: constants.NetworkName
description?: string
url?: string
}
Expand Down
6 changes: 2 additions & 4 deletions src/connectors/argentMobile/modal/starknet/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ export class StarknetAdapter
if (chainId === "SN_GOERLI") {
return constants.NetworkName.SN_GOERLI
}
if (chainId === "SN_GOERLI2") {
return constants.NetworkName.SN_GOERLI
}

if (chainId === "SN_MAIN") {
return constants.NetworkName.SN_GOERLI
return constants.NetworkName.SN_MAIN
}
throw new Error(`Unknown starknet.js network name for chainId ${chainId}`)
}
Expand Down

0 comments on commit 109c51b

Please sign in to comment.