Skip to content

Commit

Permalink
Merge pull request #1565 from aeternity/fix/cross-aepp-wallet-comp
Browse files Browse the repository at this point in the history
fix(aepp): use networkId in rpc tx signing
  • Loading branch information
davidyuk authored Jun 17, 2022
2 parents 967de89 + 916dba0 commit a7ef9f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/account/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export default class AccountRpc extends AccountBase {
const res = await this._rpcClient.request(METHODS.sign, {
onAccount: this._address,
tx,
returnSigned: true
returnSigned: true,
/**
* @deprecated Wallet provided networkId will be used (current network)
* required to maintain backward compatibility with wallets using SDK v11.0.1 and below
* @see {@link https://github.com/aeternity/aepp-sdk-js/commit/153fd89a52c4eab39fcd659b356b36d32129c1ba}
*/
networkId
})
return res.signedTransaction
}
Expand Down
3 changes: 2 additions & 1 deletion tsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@link": true,
"@see": true,
"@example": true,
"@category": true
"@category": true,
"@deprecated": true
}
}

0 comments on commit a7ef9f1

Please sign in to comment.