diff --git a/package.json b/package.json index fa95150..6930c30 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@types/node": "^18.7.18", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "@wharfkit/session": "^0.3.1", + "@wharfkit/session": "^0.3.3", "@wharfkit/wallet-plugin-privatekey": "^0.3.0", "chai": "^4.3.4", "eosio-signing-request": "^2.5.2", diff --git a/src/index.ts b/src/index.ts index 80d3a31..382bc0a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -213,7 +213,7 @@ export class WalletPluginAnchor extends AbstractWalletPlugin { type: 'link', label: 'Sign manually or with another device', data: { - href: resolved.request.encode(true, false), + href: resolved.request.encode(true, false, 'esr-anchor'), label: 'Trigger Manually', }, }, @@ -246,7 +246,7 @@ export class WalletPluginAnchor extends AbstractWalletPlugin { const service = new URL(this.data.channelUrl).origin const channel = new URL(this.data.channelUrl).pathname.substring(1) const sealedMessage = sealMessage( - resolved.request.encode(true, false), + resolved.request.encode(true, false, 'esr-anchor'), PrivateKey.from(this.data.privateKey), PublicKey.from(this.data.signerKey) ) diff --git a/yarn.lock b/yarn.lock index d29269e..a4784fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -220,10 +220,10 @@ eventemitter3 "^4.0.7" tslib "^2.1.0" -"@greymass/eosio@^0.6.0", "@greymass/eosio@^0.6.9": - version "0.6.9" - resolved "https://registry.yarnpkg.com/@greymass/eosio/-/eosio-0.6.9.tgz#e5475dfb6f1507da6ec2f9f0065e19684e8d4b70" - integrity sha512-Xd6X3sesStFQiw3+6+8tD1IauW3WX25GQnHa/zhUqIE1cB23bjzLqn89JDTcyQYKJ4R24L1rERqko/u6p7RizA== +"@greymass/eosio@^0.6.0", "@greymass/eosio@^0.6.10": + version "0.6.10" + resolved "https://registry.yarnpkg.com/@greymass/eosio/-/eosio-0.6.10.tgz#20028c2f71da8c071e0a78959904660fa54e1182" + integrity sha512-lgml9eAR85q1s3cDSFiipK1XensUASpBWPU6vu3FRDot0CBOC46kHnNWXjF9p+/jI2TzxFqPVU185ZxzC9Q3mw== dependencies: bn.js "^4.11.9" brorand "^1.1.0" @@ -594,13 +594,13 @@ "@typescript-eslint/types" "5.50.0" eslint-visitor-keys "^3.3.0" -"@wharfkit/session@^0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-0.3.1.tgz#7aa8380481925806ba986025cca05bac8a14b773" - integrity sha512-ZipRLwPR2/kNDqM9kQvQyijeURJQ0mSiCtEYMOPRL17Chp39bZa3zTeBfFlTZMoY8nkn0M3k7+bkkOh9D+UwBQ== +"@wharfkit/session@^0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-0.3.3.tgz#fc09975a6065fb2173706318ef496cf3b38413d0" + integrity sha512-RMJEIXHlvS5jTqPjCARIBSwOFxyPib0KjEHehTkEzYxwFgfBUTs4yjYnrqFYxYMqLWNKYwtCoKsvgbRmg3E9dQ== dependencies: - "@greymass/eosio" "^0.6.9" - eosio-signing-request "^2.5.2" + "@greymass/eosio" "^0.6.10" + eosio-signing-request "^2.5.3" pako "^2.0.4" tslib "^2.1.0" @@ -1065,10 +1065,10 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -eosio-signing-request@^2.5.2: - version "2.5.2" - resolved "https://registry.yarnpkg.com/eosio-signing-request/-/eosio-signing-request-2.5.2.tgz#3cf53d71204d32bb5112e2ac84aba189661a630c" - integrity sha512-mkWhsjZYVfyvUujbeSBZ4u1NlT5Pks/VAT2CesUtMsffg1e4LaA2/uijrDoGNkhRzVv4VDxrssh9jVPdyV97rw== +eosio-signing-request@^2.5.2, eosio-signing-request@^2.5.3: + version "2.5.3" + resolved "https://registry.yarnpkg.com/eosio-signing-request/-/eosio-signing-request-2.5.3.tgz#4b15bcc67d2814393a83084c45e4473d638b16e1" + integrity sha512-jb4cKjQM+NI8+JwtGClYiCDX9sgSeUreRTE7YkIAga0fo21vtLTjTn0ZUH1zyfQU5b4Drdcs/yUMXdPUtqp9bg== dependencies: "@greymass/eosio" "^0.6.0" tslib "^2.0.3"