Skip to content

Commit

Permalink
Merge pull request #14 from leapwallet/main
Browse files Browse the repository at this point in the history
Fixed chainInfo
  • Loading branch information
leapsamvel authored Aug 26, 2023
2 parents 6559403 + 683dab1 commit b7e0b35
Show file tree
Hide file tree
Showing 8 changed files with 2,997 additions and 134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [release]
paths:
- 'packages/cosmos-snap-provider/**'
- 'packages/**'
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -22,6 +22,6 @@ jobs:
- name: Build Provider
run: yarn build:provider

- name: Bump version and publish package
- name: Publish package
run:
yarn publish --non-interactive
yarn publish:ci
28 changes: 0 additions & 28 deletions .github/workflows/publish-snap.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"eslint-plugin-jsdoc": "^39.2.9",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"lerna": "^7.1.5",
"patch-package": "^7.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.2.1",
Expand Down
9 changes: 6 additions & 3 deletions packages/cosmos-snap-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.4",
"version": "0.0.5",
"name": "@leapwallet/cosmos-snap-provider",
"packageManager": "[email protected]",
"files": [
Expand All @@ -17,13 +17,16 @@
"scripts": {
"build": "npx tsc",
"start": "npx tsc watch",
"prepublish": "yarn build"
"prepublish": "yarn build",
"bootstrap": "yarn --ignore-engines",
"publish:ci": "lerna publish from-package --yes"
},
"dependencies": {
"@cosmjs/amino": "^0.31.0",
"@cosmjs/proto-signing": "^0.31.0"
},
"devDependencies": {
"cosmjs-types": "^0.8.0"
"cosmjs-types": "^0.8.0",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leapwallet/metamask-cosmos-snap",
"version": "0.1.7",
"version": "0.1.8",
"description": "Leapwallet cosmos snap for metamask",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.1.7",
"version": "0.1.8",
"description": "Leap wallet sample snap",
"proposedName": "Leap Wallet",
"repository": {
"type": "git",
"url": "https://github.com/leapwallet/cosmos-metamask-snap.git"
},
"source": {
"shasum": "eJk7Qx8pI0uVwLbisotQW5i91iRVLFJ5EgcXrCtdwDE=",
"shasum": "2GyqClI3WSYxIyBuECD+6wCOdwuCymaEfaT/VnDcshA=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({
}

case 'suggestChain': {
const chainInfo = request.params as unknown as ChainInfo;
const { chainInfo } = request.params as unknown as { chainInfo: ChainInfo};
validateChain(chainInfo);
const panels = getChainPanel(origin, chainInfo);
const confirmed = await snap.request({
Expand Down
Loading

0 comments on commit b7e0b35

Please sign in to comment.