@metamask-previews/ramps-controller 12.0.1-preview-2d89a26 → 12.0.1-preview-afe010990

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/CHANGELOG.md CHANGED
@@ -9,11 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Changed
11
11
 
12
- - `RampsService.getOrder` and `getOrderFromCallback` accept provider codes with or without a `/providers/` prefix; API paths use the short provider segment. `RampsController` forwards provider ids from order polling to the service without stripping the prefix. ([#8278](https://github.com/MetaMask/core/pull/8278))
13
-
14
- ### Fixed
15
-
16
- - `addPrecreatedOrder` normalizes `providerCode` (stripping a leading `/providers/` when present) and sets stub `provider.id` to `/providers/{code}` so precreated stubs match the resource id shape used elsewhere for polling. ([#8289](https://github.com/MetaMask/core/pull/8289))
12
+ - `RampsService.getOrder` and `getOrderFromCallback` accept provider codes with or without a `/providers/` prefix; API paths use the short provider segment. `RampsController` forwards provider ids (including from order polling and `addPrecreatedOrder` stubs) to the service without stripping the prefix. ([#8278](https://github.com/MetaMask/core/pull/8278))
17
13
 
18
14
  ## [12.0.1]
19
15
 
@@ -1040,11 +1040,10 @@ class RampsController extends base_controller_1.BaseController {
1040
1040
  if (!orderCode?.trim()) {
1041
1041
  return;
1042
1042
  }
1043
- const normalizedProviderCode = normalizeProviderCode(providerCode);
1044
1043
  const stubOrder = {
1045
1044
  providerOrderId: orderCode,
1046
1045
  provider: {
1047
- id: `/providers/${normalizedProviderCode}`,
1046
+ id: providerCode,
1048
1047
  name: '',
1049
1048
  environmentType: '',
1050
1049
  description: '',