@ -165,7 +165,7 @@ if [ "$NETWORK" == "localnet" ]; then
POSTDATA[ net_peerCount] = "net_peerCount\",\"params\":[]"
POSTDATA[ net_peerCount] = "net_peerCount\",\"params\":[]"
POSTDATA[ hmy_getBalance] = "hmy_getBalance\",\"params\":[\"one18t4yj4fuutj83uwqckkvxp9gfa0568uc48ggj7\", \"latest\"]"
POSTDATA[ hmy_getBalance] = "hmy_getBalance\",\"params\":[\"one18t4yj4fuutj83uwqckkvxp9gfa0568uc48ggj7\", \"latest\"]"
POSTDATA[ hmy_getStorageAt] = "hmy_getStorageAt\",\"params\":[\"0xD7Ff41CA29306122185A07d04293DdB35F24Cf2d\", \"0\", \"latest\"]"
POSTDATA[ hmy_getStorageAt] = "hmy_getStorageAt\",\"params\":[\"0xD7Ff41CA29306122185A07d04293DdB35F24Cf2d\", \"0\", \"latest\"]"
POSTDATA[ hmy_getTransactionCount] = "hmy_getTransactionCount \",\"params\":[\"0x806171f95C5a74371a19e8a312c9e5Cb4E1D24f6\", \"latest\"]" # what is this
POSTDATA[ hmy_getAccountNonce] = "hmy_getAccountNonce \",\"params\":[\"0x806171f95C5a74371a19e8a312c9e5Cb4E1D24f6\", \"latest\"]"
POSTDATA[ hmy_sendRawTransaction] = " hmy_sendRawTransaction\",\"params\":[\" $SIGNED_RAW_TRANSACTION \"] "
POSTDATA[ hmy_sendRawTransaction] = " hmy_sendRawTransaction\",\"params\":[\" $SIGNED_RAW_TRANSACTION \"] "
POSTDATA[ hmy_getLogs] = " hmy_getLogs\", \"params\":[{\"BlockHash\": \" $TRANSACTION_BLOCK_HASH \"}] "
POSTDATA[ hmy_getLogs] = " hmy_getLogs\", \"params\":[{\"BlockHash\": \" $TRANSACTION_BLOCK_HASH \"}] "
POSTDATA[ hmy_getFilterChanges] = "hmy_getFilterChanges\", \"params\":[\"0x58010795a282878ed0d61da72a14b8b0\"]"
POSTDATA[ hmy_getFilterChanges] = "hmy_getFilterChanges\", \"params\":[\"0x58010795a282878ed0d61da72a14b8b0\"]"
@ -193,7 +193,7 @@ if [ "$NETWORK" == "betanet" ]; then
POSTDATA[ net_peerCount] = "net_peerCount\",\"params\":[]"
POSTDATA[ net_peerCount] = "net_peerCount\",\"params\":[]"
POSTDATA[ hmy_getBalance] = "hmy_getBalance\",\"params\":[\"one18t4yj4fuutj83uwqckkvxp9gfa0568uc48ggj7\", \"latest\"]"
POSTDATA[ hmy_getBalance] = "hmy_getBalance\",\"params\":[\"one18t4yj4fuutj83uwqckkvxp9gfa0568uc48ggj7\", \"latest\"]"
POSTDATA[ hmy_getStorageAt] = "hmy_getStorageAt\",\"params\":[\"0xD7Ff41CA29306122185A07d04293DdB35F24Cf2d\", \"0\", \"latest\"]"
POSTDATA[ hmy_getStorageAt] = "hmy_getStorageAt\",\"params\":[\"0xD7Ff41CA29306122185A07d04293DdB35F24Cf2d\", \"0\", \"latest\"]"
POSTDATA[ hmy_getTransactionCount] = "hmy_getTransactionCount \",\"params\":[\"0x806171f95C5a74371a19e8a312c9e5Cb4E1D24f6\", \"latest\"]" # what is this
POSTDATA[ hmy_getAccountNonce] = "hmy_getAccountNonce \",\"params\":[\"0x806171f95C5a74371a19e8a312c9e5Cb4E1D24f6\", \"latest\"]"
POSTDATA[ hmy_sendRawTransaction] = " hmy_sendRawTransaction\",\"params\":[\" $SIGNED_RAW_TRANSACTION \"] "
POSTDATA[ hmy_sendRawTransaction] = " hmy_sendRawTransaction\",\"params\":[\" $SIGNED_RAW_TRANSACTION \"] "
POSTDATA[ hmy_getLogs] = " hmy_getLogs\", \"params\":[{\"BlockHash\": \" $TRANSACTION_BLOCK_HASH \"}] "
POSTDATA[ hmy_getLogs] = " hmy_getLogs\", \"params\":[{\"BlockHash\": \" $TRANSACTION_BLOCK_HASH \"}] "
POSTDATA[ hmy_getFilterChanges] = "hmy_getFilterChanges\", \"params\":[\"0x58010795a282878ed0d61da72a14b8b0\"]"
POSTDATA[ hmy_getFilterChanges] = "hmy_getFilterChanges\", \"params\":[\"0x58010795a282878ed0d61da72a14b8b0\"]"
@ -228,7 +228,7 @@ RESPONSES[hmy_syncing]=""
RESPONSES[ net_peerCount] = ""
RESPONSES[ net_peerCount] = ""
RESPONSES[ hmy_getBalance] = ""
RESPONSES[ hmy_getBalance] = ""
RESPONSES[ hmy_getStorageAt] = ""
RESPONSES[ hmy_getStorageAt] = ""
RESPONSES[ hmy_getTransactionCount ] = ""
RESPONSES[ hmy_getAccountNonce ] = ""
RESPONSES[ hmy_sendRawTransaction] = ""
RESPONSES[ hmy_sendRawTransaction] = ""
RESPONSES[ hmy_getLogs] = ""
RESPONSES[ hmy_getLogs] = ""
RESPONSES[ hmy_getFilterChanges] = ""
RESPONSES[ hmy_getFilterChanges] = ""
@ -545,10 +545,10 @@ function API_getStorageAt_test() {
echo
echo
}
}
function API_getTransactionCount _test( ) {
function API_getAccountNonce _test( ) {
TESTS_RAN = $(( TESTS_RAN + 1 ))
TESTS_RAN = $(( TESTS_RAN + 1 ))
echo "POST hmy_getTransactionCount test:"
echo "POST hmy_getAccountNonce test:"
response_test ${ RESPONSES [hmy_getTransactionCount ] }
response_test ${ RESPONSES [hmy_getAccountNonce ] }
[ " $? " = = "1" ] && TESTS_PASSED = $(( TESTS_PASSED + 1 ))
[ " $? " = = "1" ] && TESTS_PASSED = $(( TESTS_PASSED + 1 ))
echo
echo
}
}
@ -670,7 +670,7 @@ function run_tests() {
API_netPeerCount_test
API_netPeerCount_test
API_getBalance_test
API_getBalance_test
API_getStorageAt_test
API_getStorageAt_test
API_getTransactionCount _test
API_getAccountNonce _test
API_sendRawTransaction_test
API_sendRawTransaction_test
API_getLogs_test
API_getLogs_test
API_getFilterChanges_test
API_getFilterChanges_test