Skip to content

Commit 7494a76

Browse files
authored
fix: update p2wsh, p2tr and p2sh dust minimum value (#570)
* fix: update p2wsh and p2tr dust minimum value * fix: update shasum from snap manifest
1 parent 80fa854 commit 7494a76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/snap/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snap-bitcoin-wallet.git"
88
},
99
"source": {
10-
"shasum": "hmikd6KULvwRb0sm9GHhXADSxdDLW2csc66F6nllr54=",
10+
"shasum": "6kdMznE7tGXmwImqgqrIl4Kw7eCiiEOrHTE5TDhhWeg=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/snap/src/handlers/validation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ function getDustLimitSats(addressType: AddressType): bigint {
188188
case 'p2pkh':
189189
return 546n;
190190
case 'p2sh':
191-
return 546n;
191+
return 540n;
192192
case 'p2wsh':
193-
return 546n;
193+
return 330n;
194194
case 'p2tr':
195-
return 546n;
195+
return 330n;
196196
default:
197197
return 546n;
198198
}

0 commit comments

Comments
 (0)