@permissionless-technologies/upp-sdk 0.4.1 → 0.4.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/dist/{chunk-MDF37354.js → chunk-6BHF4HOB.js} +14 -24
- package/dist/chunk-6BHF4HOB.js.map +1 -0
- package/dist/{chunk-BZD5KJL3.cjs → chunk-ZQ5LLJQC.cjs} +14 -24
- package/dist/chunk-ZQ5LLJQC.cjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +2 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +2 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BZD5KJL3.cjs.map +0 -1
- package/dist/chunk-MDF37354.js.map +0 -1
package/dist/react/index.js
CHANGED
|
@@ -511,11 +511,10 @@ function UPPAccountProvider({
|
|
|
511
511
|
const tokenRaw = "0x" + Array.from(ptBytes.slice(84, 104)).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
512
512
|
const origin = getAddress(originRaw);
|
|
513
513
|
const token = getAddress(tokenRaw);
|
|
514
|
-
const
|
|
514
|
+
const ownerHash = await sdk.poseidon([spendingSecret]);
|
|
515
515
|
const expectedCommitment = await sdk.poseidon([
|
|
516
516
|
amount,
|
|
517
|
-
|
|
518
|
-
pubkey.y,
|
|
517
|
+
ownerHash,
|
|
519
518
|
blinding,
|
|
520
519
|
BigInt(origin),
|
|
521
520
|
BigInt(token)
|