You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smart-contracts/developing-contracts/verify-a-contract.md
+69-24Lines changed: 69 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,8 +91,11 @@ curl --location --request POST 'https://filfox.info/api/v1/tools/verifyContract'
91
91
92
92
See below for a list of common success and error codes (and their meanings):
93
93
94
+
Here is the list of common success and error codes, formatted for clarity:
94
95
95
-
**Verify ok**
96
+
---
97
+
98
+
### **Verify ok**
96
99
97
100
```json
98
101
{
@@ -104,71 +107,113 @@ See below for a list of common success and error codes (and their meanings):
104
107
}
105
108
```
106
109
110
+
**Description:**
107
111
Your contract is now verified.
108
-
109
-
**Source files not found**
112
+
113
+
---
114
+
115
+
### **Source files not found**
110
116
111
117
```json
112
118
{
113
119
"success": false,
114
-
"errorCode": 1,
120
+
"errorCode": 1
115
121
}
116
122
```
117
123
124
+
**Description:**
118
125
No source file was provided.
119
-
120
-
**Contract initcode not found**
126
+
127
+
---
128
+
129
+
### **Contract initcode not found**
130
+
131
+
```json
121
132
{
122
133
"success": false,
123
-
"errorCode": 2,
134
+
"errorCode": 2
124
135
}
136
+
```
125
137
138
+
**Description:**
126
139
Please contact Filfox on Telegram/Slack if you encounter this error.
127
-
128
-
**Load remote compiler failed**
140
+
141
+
---
142
+
143
+
### **Load remote compiler failed**
144
+
145
+
```json
129
146
{
130
147
"success": false,
131
-
"errorCode": 3,
148
+
"errorCode": 3
132
149
}
150
+
```
133
151
152
+
**Description:**
134
153
The compiler version string must be in the long format. For example, if you would like to use version v0.7.6, you need to include the commit hash of the release like this: `v0.7.6+commit.7338295f`. Please try again later with the correct compiler version string if you encounter this error.
135
-
136
-
**Verify failed**
154
+
155
+
---
156
+
157
+
### **Verify failed**
158
+
159
+
```json
137
160
{
138
161
"success": false,
139
162
"errorCode": 4,
140
163
"contractName": "xxx",
141
164
"initCode": "6080604052348015610010...",
142
165
"byteCode": "6080604052348015610010..."
143
166
}
167
+
```
168
+
169
+
**Description:**
170
+
Compiled bytecode doesn't match the contract's initcode. Please make sure all source files and compiler configs are correct.
171
+
172
+
---
173
+
174
+
### **Unsupported language**
144
175
145
-
Compiled bytecode doesn't match the contract's initcode, please make sure all source files and compiler configs are correct.
146
-
147
-
**Unsupported language**
176
+
```json
148
177
{
149
178
"success": false,
150
-
"errorCode": 5,
179
+
"errorCode": 5
151
180
}
181
+
```
182
+
183
+
**Description:**
184
+
Only Solidity is supported for now.
185
+
186
+
---
187
+
188
+
### **Contract already verified**
152
189
153
-
Only support Solidity for now.
154
-
155
-
**Contract already verified**
190
+
```json
156
191
{
157
192
"success": false,
158
-
"errorCode": 6,
193
+
"errorCode": 6
159
194
}
195
+
```
160
196
197
+
**Description:**
161
198
The contract you are trying to verify has already been verified before.
162
-
163
-
**Compilation error**
199
+
200
+
---
201
+
202
+
### **Compilation error**
203
+
204
+
```json
164
205
{
165
206
"success": false,
166
207
"errorCode": 7,
167
208
"errorMsg": "DeclarationError: Identifier not found or not unique..."
168
209
}
210
+
```
211
+
212
+
**Description:**
213
+
There is something wrong with your source files. Please fix the issue and try again.
214
+
215
+
---
169
216
170
-
There is something wrong with your source files, please fix it and try again.
0 commit comments