Skip to content

Commit 83e4f49

Browse files
committed
Fixes
1 parent 3e8b000 commit 83e4f49

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/models/fixed_fungible_token_params_extractor.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ class FixedFungibleTokenParamsExtractor
55
DEFAULT_PARAMS = [''.b, ''.b, ''.b, 0, 0, 0].freeze
66
UINT256_MAX = 2**256 - 1
77

8-
# The later is mostly historical
9-
108
# Exact regex patterns for valid formats
119
# Protocol must be "erc-20" or "fixed-fungible" (case-sensitive)
1210
# Tick must be lowercase letters/numbers, max 28 chars

spec/models/protocol_extractor_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# Should be extracted as generic protocol due to extra fields
5050
expect(result).not_to be_nil
5151
expect(result[:type]).to eq(:generic)
52-
expect(result[:protocol]).to eq('fixed-fungible')
52+
expect(result[:protocol]).to eq('erc-20')
5353
end
5454
end
5555

@@ -133,7 +133,7 @@
133133

134134
result = ProtocolExtractor.for_calldata(content_uri)
135135

136-
expect(result[0]).to eq('erc-20'.b) # protocol
136+
expect(result[0]).to eq('fixed-fungible'.b) # protocol
137137
expect(result[1]).to eq('deploy'.b) # operation
138138
expect(result[2]).not_to be_empty # encoded data
139139

@@ -151,7 +151,7 @@
151151

152152
result = ProtocolExtractor.for_calldata(content_uri)
153153

154-
expect(result[0]).to eq('erc-20'.b) # protocol
154+
expect(result[0]).to eq('fixed-fungible'.b) # protocol
155155
expect(result[1]).to eq('mint'.b) # operation
156156
expect(result[2]).not_to be_empty # encoded data
157157

0 commit comments

Comments
 (0)