Skip to content

Commit 809dde2

Browse files
authored
Merge pull request #41 from lyc-huc/0.15.1-develop
sending transaction return value adds error code 1:'System error',2:'Object not found',3:'Invalid parameter'
2 parents f1cf2df + 083bd29 commit 809dde2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client_sdk_python/error_code.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
RestrictTxPlanSize = 36
12
ERROR_INFO = {
23
# successful error code
34
0: 'sendRawTransaction successful',
5+
# System error
6+
1: 'System error',
7+
# Object not found
8+
2: 'Object not found',
9+
# Invalid parameter
10+
3: 'Invalid parameter',
411
# staking error code
512
301000: 'Invalid BLS public key length',
613
301001: 'The BLS proof is incorrect',
@@ -88,6 +95,7 @@
8895
303010: "Can't report yourself",
8996
# restricting error code
9097
304001: 'The initial epoch for staking cannot be zero',
98+
304002: 'The number of the restricting plan cannot be (0, {}]'.format(RestrictTxPlanSize),
9199
304003: 'Total staking amount shall be more than 1 LAT',
92100
304004: 'Create plan,the sender balance is not enough in restrict',
93101
304005: 'Account is not found on restricting contract',

0 commit comments

Comments
 (0)