Skip to content

Commit

Permalink
Merge pull request #23 from wharfkit/support-for-esr-anchor-scheme
Browse files Browse the repository at this point in the history
Using esr-anchor instead of esr scheme
  • Loading branch information
aaroncox authored Apr 12, 2023
2 parents 65d324f + 5746756 commit 6a3b49e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,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',
},
},
Expand Down Expand Up @@ -243,7 +243,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)
)
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6a3b49e

Please sign in to comment.