@0xsequence/wallet-wdk 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +12 -0
- package/package.json +6 -6
- package/test/transactions.test.ts +19 -0
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @0xsequence/wallet-wdk
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- allow native self transfer
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @0xsequence/guard@3.0.2
|
|
10
|
+
- @0xsequence/identity-instrument@3.0.2
|
|
11
|
+
- @0xsequence/relayer@3.0.2
|
|
12
|
+
- @0xsequence/wallet-core@3.0.2
|
|
13
|
+
- @0xsequence/wallet-primitives@3.0.2
|
|
14
|
+
|
|
3
15
|
## 3.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/wallet-wdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"jwt-decode": "^4.0.0",
|
|
31
31
|
"ox": "^0.9.17",
|
|
32
32
|
"uuid": "^13.0.0",
|
|
33
|
-
"@0xsequence/guard": "^3.0.
|
|
34
|
-
"@0xsequence/relayer": "^3.0.
|
|
35
|
-
"@0xsequence/identity-instrument": "^3.0.
|
|
36
|
-
"@0xsequence/wallet-
|
|
37
|
-
"@0xsequence/wallet-
|
|
33
|
+
"@0xsequence/guard": "^3.0.2",
|
|
34
|
+
"@0xsequence/relayer": "^3.0.2",
|
|
35
|
+
"@0xsequence/identity-instrument": "^3.0.2",
|
|
36
|
+
"@0xsequence/wallet-primitives": "^3.0.2",
|
|
37
|
+
"@0xsequence/wallet-core": "^3.0.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc",
|
|
@@ -481,12 +481,31 @@ describe('Transactions', () => {
|
|
|
481
481
|
const txId1 = manager.transactions.request(wallet!, Network.ChainId.ARBITRUM, [
|
|
482
482
|
{
|
|
483
483
|
to: wallet!,
|
|
484
|
+
data: '0x1234',
|
|
484
485
|
},
|
|
485
486
|
])
|
|
486
487
|
|
|
487
488
|
await expect(txId1).rejects.toThrow()
|
|
488
489
|
})
|
|
489
490
|
|
|
491
|
+
it('Should allow native token transfer to self in safe mode', async () => {
|
|
492
|
+
const manager = newManager()
|
|
493
|
+
const wallet = await manager.wallets.signUp({
|
|
494
|
+
mnemonic: Mnemonic.random(Mnemonic.english),
|
|
495
|
+
kind: 'mnemonic',
|
|
496
|
+
noGuard: true,
|
|
497
|
+
})
|
|
498
|
+
|
|
499
|
+
const txId1 = await manager.transactions.request(wallet!, Network.ChainId.ARBITRUM, [
|
|
500
|
+
{
|
|
501
|
+
to: wallet!,
|
|
502
|
+
value: 1n,
|
|
503
|
+
},
|
|
504
|
+
])
|
|
505
|
+
|
|
506
|
+
expect(txId1).toBeDefined()
|
|
507
|
+
})
|
|
508
|
+
|
|
490
509
|
it('Should allow transactions to self in unsafe mode', async () => {
|
|
491
510
|
const manager = newManager()
|
|
492
511
|
const wallet = await manager.wallets.signUp({
|