From 734edd99c356e479cd6fe1ba79b7a8837d467ffa Mon Sep 17 00:00:00 2001 From: nedsalk Date: Sun, 15 Dec 2024 21:01:22 +0100 Subject: [PATCH] remove rawUntypedPtr from swayTypeMatchers --- packages/abi/src/matchers/sway-type-matchers.test.ts | 9 --------- packages/abi/src/matchers/sway-type-matchers.ts | 2 -- 2 files changed, 11 deletions(-) diff --git a/packages/abi/src/matchers/sway-type-matchers.test.ts b/packages/abi/src/matchers/sway-type-matchers.test.ts index 46cc40cd475..ea6f8bfa77a 100644 --- a/packages/abi/src/matchers/sway-type-matchers.test.ts +++ b/packages/abi/src/matchers/sway-type-matchers.test.ts @@ -27,7 +27,6 @@ const testMappings: Record = array: 'array-matched', assetId: 'assetId-matched', evmAddress: 'evmAddress-matched', - rawUntypedPtr: 'rawUntypedPtr-matched', rawUntypedSlice: 'rawUntypedSlice-matched', str: 'str-matched', }; @@ -231,14 +230,6 @@ describe('sway type matchers', () => { await verifyOtherMatchersDontMatch(key, swayType); }); - test('rawUntypedPtr', async () => { - const key = 'rawUntypedPtr'; - const swayType = 'raw untyped ptr'; - - expect(matcher({ swayType })).toEqual(`${key}-matched`); - await verifyOtherMatchersDontMatch(key, swayType); - }); - test('rawUntypedSlice', async () => { const key = 'rawUntypedSlice'; const swayType = 'raw untyped slice'; diff --git a/packages/abi/src/matchers/sway-type-matchers.ts b/packages/abi/src/matchers/sway-type-matchers.ts index 9337b4cfb7e..68980d78429 100644 --- a/packages/abi/src/matchers/sway-type-matchers.ts +++ b/packages/abi/src/matchers/sway-type-matchers.ts @@ -24,7 +24,6 @@ export type SwayType = | 'array' | 'assetId' | 'evmAddress' - | 'rawUntypedPtr' | 'rawUntypedSlice'; type Matcher = (type: string) => boolean; @@ -100,7 +99,6 @@ export const swayTypeMatchers: Record = { option, result, - rawUntypedPtr, rawUntypedSlice, };