File tree 4 files changed +35
-5
lines changed 4 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ async function giveCCCInternal(
82
82
account : context . config . faucetCodeChainAddress ,
83
83
passphrase : context . config . faucetCodeChainPasspharase ,
84
84
seq,
85
- fee : String ( 100 * 1000 * 1000 )
85
+ fee : String ( 100 )
86
86
} ) ;
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export async function getSeq(context: Context): Promise<number> {
5
5
let seq = await sdk . rpc . chain . getSeq ( context . config . faucetCodeChainAddress ) ;
6
6
7
7
const pendingTransactions = await sdk . rpc . chain . getPendingTransactions ( ) ;
8
- for ( const pendingTransaction of pendingTransactions ) {
8
+ for ( const pendingTransaction of pendingTransactions . transactions ) {
9
9
if (
10
10
context . config . faucetCodeChainAddress ===
11
11
pendingTransaction
@@ -14,9 +14,9 @@ export async function getSeq(context: Context): Promise<number> {
14
14
} )
15
15
. toString ( )
16
16
) {
17
- const pendingSeq = pendingTransaction . toJSON ( ) . seq ;
17
+ const pendingSeq = pendingTransaction . toJSON ( ) . seq ! ;
18
18
if ( pendingSeq >= seq ) {
19
- seq = pendingSeq . increase ( ) ;
19
+ seq = pendingSeq + 1 ;
20
20
}
21
21
}
22
22
}
Original file line number Diff line number Diff line change 12
12
"license" : " Apache-2.0" ,
13
13
"dependencies" : {
14
14
"cheerio" : " ^1.0.0-rc.2" ,
15
- "codechain-sdk" : " https://github.com/foriequal0 /codechain-sdk-js.git#build/mandatory-supply " ,
15
+ "codechain-sdk" : " https://github.com/sgkim126 /codechain-sdk-js.git#result-lib " ,
16
16
"config" : " ^2.0.1" ,
17
17
"cookie-parser" : " ~1.4.3" ,
18
18
"debug" : " ~2.6.9" ,
Original file line number Diff line number Diff line change @@ -792,6 +792,22 @@ codechain-primitives@^0.4.4:
792
792
ripemd160 "^2.0.2"
793
793
rlp "^2.1.0"
794
794
795
+ codechain-primitives@^0.4.7 :
796
+ version "0.4.8"
797
+ resolved "https://registry.yarnpkg.com/codechain-primitives/-/codechain-primitives-0.4.8.tgz#5206ebcf92c0d225924931493b05c384d48fc63e"
798
+ integrity sha512-yEPinaK3y0pdMgmp7EjYkru2FL0XjXZ6sjdT4KmlGchqEuLUJsZ3V+MOyGlumdW7TSR7gpHl5+szyRPxUndMrQ==
799
+ dependencies :
800
+ bignumber.js "^7.2.1"
801
+ blakejs "^1.1.0"
802
+ bn.js "^4.11.8"
803
+ buffer "^5.2.1"
804
+ elliptic "^6.4.1"
805
+ hmac-drbg "^1.0.1"
806
+ lodash "^4.17.11"
807
+ node-forge "^0.7.6"
808
+ ripemd160 "^2.0.2"
809
+ rlp "^2.1.0"
810
+
795
811
" codechain-sdk@https://github.com/foriequal0/codechain-sdk-js.git#build/mandatory-supply " :
796
812
version "0.5.1"
797
813
resolved "https://github.com/foriequal0/codechain-sdk-js.git#e4a61b4dc69733c3b0efe9baff378fffa9e3fe3f"
@@ -805,6 +821,20 @@ codechain-primitives@^0.4.4:
805
821
request-promise "^4.2.2"
806
822
rlp "^2.0.0"
807
823
824
+ " codechain-sdk@https://github.com/sgkim126/codechain-sdk-js.git#result-lib " :
825
+ version "0.6.0"
826
+ resolved "https://github.com/sgkim126/codechain-sdk-js.git#4ed32333c517d656b41b1bb904690d7b27a2aa84"
827
+ dependencies :
828
+ buffer "5.1.0"
829
+ codechain-keystore "^0.6.0"
830
+ codechain-primitives "^0.4.7"
831
+ jayson "^2.0.6"
832
+ lodash "^4.17.10"
833
+ node-fetch "^2.1.2"
834
+ request "^2.88.0"
835
+ request-promise "^4.2.2"
836
+ rlp "^2.0.0"
837
+
808
838
collection-visit@^1.0.0 :
809
839
version "1.0.0"
810
840
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
You can’t perform that action at this time.
0 commit comments