@armory-sh/client-web3 0.2.18-alpha.3.21 → 0.2.18-alpha.3.22

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -243,7 +243,7 @@ var signPaymentV2 = async (state, network, params) => {
243
243
  const defaultAccepted = accepted ?? {
244
244
  scheme: "exact",
245
245
  network: networkToCaip2(network.name),
246
- maxAmountRequired: amount,
246
+ amount,
247
247
  asset: network.usdcAddress,
248
248
  payTo: to,
249
249
  maxTimeoutSeconds: expiry - Math.floor(Date.now() / 1e3)
@@ -298,7 +298,7 @@ var createX402Client = (config) => {
298
298
  const result = await signPaymentV2(state, network, {
299
299
  from,
300
300
  to,
301
- amount: req.maxAmountRequired,
301
+ amount: req.amount,
302
302
  nonce: crypto.randomUUID(),
303
303
  expiry: Math.floor(Date.now() / 1e3) + DEFAULT_EXPIRY_SECONDS,
304
304
  accepted: req
@@ -346,7 +346,7 @@ var createX402Client = (config) => {
346
346
  return signPaymentV2(state, network, {
347
347
  from,
348
348
  to,
349
- amount: requirements.maxAmountRequired,
349
+ amount: requirements.amount,
350
350
  nonce: crypto.randomUUID(),
351
351
  expiry: Math.floor(Date.now() / 1e3) + DEFAULT_EXPIRY_SECONDS,
352
352
  accepted: requirements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armory-sh/client-web3",
3
- "version": "0.2.18-alpha.3.21",
3
+ "version": "0.2.18-alpha.3.22",
4
4
  "license": "MIT",
5
5
  "author": "Sawyer Cutler <sawyer@dirtroad.dev>",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "directory": "packages/client-web3"
28
28
  },
29
29
  "dependencies": {
30
- "@armory-sh/base": "0.2.22-alpha.3.21",
30
+ "@armory-sh/base": "0.2.22-alpha.3.22",
31
31
  "web3": "4.16.0",
32
32
  "web3-types": "1.10.0"
33
33
  },