-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update sdk to 14 and related fixes #3444
Conversation
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
@@ -1,3 +1,5 @@ | |||
@use 'variables'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Warning on line 8, column 8 of file:///Users/denis/Documents/superhero-wallet/src/styles/typography.scss:8:8:
Sass @ import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
@@ -4,7 +4,7 @@ import { STUB_ACCOUNT, STUB_TX_BASE_64 } from '@/constants/stubs'; | |||
|
|||
const callbackUrl = encodeURIComponent('http://localhost'); | |||
const encodedContractCallTx = encodeURIComponent('tx_+HQrAaEBbLQV9y00r/WCZ4XWrEVDpdiLPiLx2282rdKA1dkRTlmCA7yhBWuJbvnfcBIKpR/IbC+ywuM9P7fvmDFNerFKykCB+M1qA4al2v8FcAAAhzcV8VZnVACDGBf4hDuaygCQKxEV1igBG2+HI4byb8D/wPOLADU='); | |||
const encodedGaAttachTx = encodeURIComponent('tx_+O1QAaEByqPFadmQk4sGtyDiquosAZyKJNmherKOhheVIEYTLCITuIv4iUYDoIMndi6iAoqQltixF/3A6WlN0+rWVAan4LvFLy2pEJlhwLhcuDv+RNZEHwA3ADcAGg6CPwEDP/5s8lcLADcCFwcXdwAIPAIE+wNNTm90IGluIEF1dGggY29udGV4dAEBAJsvAhFE1kQfEWluaXQRbPJXCyVhdXRob3JpemWCLwCFNy4xLjAAoGzyVwsKFZm3CCkeUKo9rxPQx/JIS8M33a0kE6N/1KAJgwcAA4ZIjzqPaAAATIQ7msoAhysRRNZEHz+4yEN3'); | |||
const encodedUnknownTx = encodeURIComponent('tx_+FKB/wGhAcqjxWnZkJOLBrcg4qrqLAGciiTZoXqyjoYXlSBGEywioQHKo8Vp2ZCTiwa3IOKq6iwBnIok2aF6so6GF5UgRhMsIguGDyb1YcgAABOAFw87cw=='); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this test better to choose a completely broken transaction, to ensure that the wallet is forward-compatible.
The problem I had with GaAttachTx
is that currently, sdk rejects building such transactions with non-1 nonce.
nonce should be equal 1 if GaAttachTx, got 19 instead
currently it will fail only if I request to replace the signer
Tag, | ||
} from '@aeternity/aepp-sdk'; | ||
import { getHdWalletAccountFromSeed } from '@aeternity/aepp-sdk-13'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will make a new release of sdk to fix that. Meanwhile, you can use it as is since tree shaking will remove the unused code.
@@ -0,0 +1,203 @@ | |||
beforeEach(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was done here aa852fa .
Isn't it working properly?
fff2f7f
to
e6c440b
Compare
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
e6c440b
to
08f62ea
Compare
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
7f7c658
to
3a6b13a
Compare
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
@@ -100,8 +101,7 @@ const runContentScript = () => { | |||
if (document.readyState === 'complete') { | |||
clearInterval(readyStateCheckInterval); | |||
const port = browser.runtime.connect(); | |||
// @ts-expect-error | |||
const extConnection = new BrowserRuntimeConnection({ port }); | |||
const extConnection = new BrowserRuntimeConnection({ port, debug: false }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change? What is pros/cons of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a bug on sdk side that I'll fix in 14.1.0: debug
shouldn't be required. From your side @ts-expect-error
is an overkill because it can ignore a more significant TS error, its usage should be limited.
Build URL is open in a black screen. Not able to test. |
1994413
to
91e8cb5
Compare
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
Unable to create a Gift card. created gift card has 0 value. Nagrywanie.ekranu.2025-02-14.124655.mp4 |
encodedUnknownTx is a spend tx with a tag replaced to 0xff
> Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
91e8cb5
to
730e35b
Compare
I fixed the above two bugs, also
|
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
if (restoredValue !== null) { | ||
await setStorageState(restoredValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think setStorageState
here was used in case we would want to introduce serializer to an existing (stored) value,
#3498 Able to import twice the same account via sk_ prefixed key |
730e35b
to
0300170
Compare
Deployed to feature-update-sdk.wallet.z52da5wt.xyz, artifacts |
I've reverted the ability to import sk_-encoded private key, will do it separately |
LGTM |
This PR is supported by the Æternity Foundation
https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/14.md
found issues #3463 aeternity/aepp-sdk-js#2046