diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbcbddd..be189af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} diff --git a/README.md b/README.md index 39040d4..0bae9a0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 8a65bb1..8bcb36b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starknetkit", - "version": "1.0.0", + "version": "1.0.2", "repository": "github:argentlabs/starknetkit", "private": false, "browser": { diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index bc308f0..395e78c 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -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, @@ -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 } diff --git a/src/connectors/argentMobile/modal/starknet/adapter.ts b/src/connectors/argentMobile/modal/starknet/adapter.ts index 4abd346..f16d7d9 100644 --- a/src/connectors/argentMobile/modal/starknet/adapter.ts +++ b/src/connectors/argentMobile/modal/starknet/adapter.ts @@ -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}`) }