Skip to content

Commit

Permalink
Merge pull request #32 from getsafle/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sshubhamagg committed May 7, 2024
2 parents 5f8b707 + 3d61e21 commit 1a5f17e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@
### 1.0.2 (2024-05-02)

- Updated 'main' path in package.json.
- Updated generate wallet return parameters
- Updated generate wallet return parameters

### 1.0.3 (2024-05-06)

- Bugfix: sign message
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getsafle/vault-stacks-controller",
"version": "1.0.2",
"version": "1.0.3",
"description": "Stacks chain controller for Safle Vault",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ class KeyringController {
}

async signMessage(message, _address, _privateKey = null) {
const { wallet, address } = this.store.getState()
const messageHash = Buffer.from(message).toString('hex');

let privateKey = _privateKey
if (!privateKey) {
const idx = address.indexOf(from)
const idx = address.indexOf(_address)
if (idx < 0)
throw "Invalid address, the address is not available in the wallet"

Expand Down

0 comments on commit 1a5f17e

Please sign in to comment.