Skip to content

Commit 456ac96

Browse files
committed
Fix: formatting errors
1 parent 4a794cf commit 456ac96

File tree

1 file changed

+69
-24
lines changed

1 file changed

+69
-24
lines changed

smart-contracts/developing-contracts/verify-a-contract.md

Lines changed: 69 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ curl --location --request POST 'https://filfox.info/api/v1/tools/verifyContract'
9191

9292
See below for a list of common success and error codes (and their meanings):
9393

94+
Here is the list of common success and error codes, formatted for clarity:
9495

95-
**Verify ok**
96+
---
97+
98+
### **Verify ok**
9699

97100
```json
98101
{
@@ -104,71 +107,113 @@ See below for a list of common success and error codes (and their meanings):
104107
}
105108
```
106109

110+
**Description:**
107111
Your contract is now verified.
108-
109-
**Source files not found**
112+
113+
---
114+
115+
### **Source files not found**
110116

111117
```json
112118
{
113119
"success": false,
114-
"errorCode": 1,
120+
"errorCode": 1
115121
}
116122
```
117123

124+
**Description:**
118125
No source file was provided.
119-
120-
**Contract initcode not found**
126+
127+
---
128+
129+
### **Contract initcode not found**
130+
131+
```json
121132
{
122133
"success": false,
123-
"errorCode": 2,
134+
"errorCode": 2
124135
}
136+
```
125137

138+
**Description:**
126139
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
129146
{
130147
"success": false,
131-
"errorCode": 3,
148+
"errorCode": 3
132149
}
150+
```
133151

152+
**Description:**
134153
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
137160
{
138161
"success": false,
139162
"errorCode": 4,
140163
"contractName": "xxx",
141164
"initCode": "6080604052348015610010...",
142165
"byteCode": "6080604052348015610010..."
143166
}
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**
144175

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
148177
{
149178
"success": false,
150-
"errorCode": 5,
179+
"errorCode": 5
151180
}
181+
```
182+
183+
**Description:**
184+
Only Solidity is supported for now.
185+
186+
---
187+
188+
### **Contract already verified**
152189

153-
Only support Solidity for now.
154-
155-
**Contract already verified**
190+
```json
156191
{
157192
"success": false,
158-
"errorCode": 6,
193+
"errorCode": 6
159194
}
195+
```
160196

197+
**Description:**
161198
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
164205
{
165206
"success": false,
166207
"errorCode": 7,
167208
"errorMsg": "DeclarationError: Identifier not found or not unique..."
168209
}
210+
```
211+
212+
**Description:**
213+
There is something wrong with your source files. Please fix the issue and try again.
214+
215+
---
169216

170-
There is something wrong with your source files, please fix it and try again.
171-
172217
#### Via. UI
173218

174219
1. Open Remix:

0 commit comments

Comments
 (0)