Skip to content

Commit

Permalink
change chain_id and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leongb authored and jleni committed Feb 23, 2021
1 parent b32e21f commit 8a0f214
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app/src/coin.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ typedef enum {
#define APPVERSION_LINE2 ("v" APPVERSION)

#define CRYPTO_BLOB_SKIP_BYTES 0
#define COIN_DEFAULT_CHAINID "Stargate"
#define COIN_DEFAULT_CHAINID "cosmoshub-4"

// In non-expert mode, the app will convert from uatom to ATOM
#define COIN_DEFAULT_DENOM_BASE "uatom"
Expand Down
50 changes: 25 additions & 25 deletions tests/testcases/manual.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"name": "completeTransferExpert",
"tx": {
"account_number": "0",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -131,7 +131,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 0",
"2 | Sequence : 1",
"3 | Source Address : cosmosaccaddr1d9h8qat5e4ehc5",
Expand All @@ -148,7 +148,7 @@
"name": "completeTransfer",
"tx": {
"account_number": "0",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -260,7 +260,7 @@
"name": "completeTransferNoMemo",
"tx": {
"account_number": "0",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -371,7 +371,7 @@
"name": "completeTransferEmptyMemo",
"tx": {
"account_number": "0",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -512,7 +512,7 @@
"name": "multipleTransfers",
"tx": {
"account_number": "0",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -595,7 +595,7 @@
"name": "delegationExpert",
"tx": {
"account_number": "6571",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -624,7 +624,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 6571",
"2 | Sequence : 1",
"3 | Type : Delegate",
Expand Down Expand Up @@ -691,7 +691,7 @@
"name": "delegation",
"tx": {
"account_number": "6571",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -780,7 +780,7 @@
"name": "proposal",
"tx": {
"account_number": "2",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [],
"gas": "500000"
Expand Down Expand Up @@ -821,7 +821,7 @@
"name": "delegation2Expert",
"tx": {
"account_number": "6571",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -850,7 +850,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 6571",
"2 | Sequence : 0",
"3 | Type : Delegate",
Expand All @@ -869,7 +869,7 @@
"name": "delegation2",
"tx": {
"account_number": "6571",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -927,7 +927,7 @@
"name": "badcase2",
"tx": {
"account_number": "6571",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -956,7 +956,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 6571",
"2 | Sequence : 0",
"3 | Type : Delegate",
Expand Down Expand Up @@ -1012,7 +1012,7 @@
"name": "groupingSmallExpert",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -1044,7 +1044,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 108",
"2 | Sequence : 106",
"3 | Type : Withdraw Reward",
Expand All @@ -1065,7 +1065,7 @@
"name": "groupingSmall",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -1112,7 +1112,7 @@
"name": "groupingExpert",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -1158,7 +1158,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 108",
"2 | Sequence : 106",
"3 | Type : Withdraw Reward",
Expand Down Expand Up @@ -1187,7 +1187,7 @@
"name": "grouping_ledger_testcase",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -1233,7 +1233,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 108",
"2 | Sequence : 106",
"3 | Type : Withdraw Reward",
Expand Down Expand Up @@ -1262,7 +1262,7 @@
"name": "massive",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -1392,7 +1392,7 @@
"parsingErr": "No error",
"validationErr": "No error",
"expected": [
"0 | Chain ID : cosmoshub-3",
"0 | Chain ID : cosmoshub-4",
"1 | Account : 108",
"2 | Sequence : 106",
"3 | Type : Withdraw Reward",
Expand Down Expand Up @@ -1469,7 +1469,7 @@
"name": "combined",
"tx": {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down
4 changes: 2 additions & 2 deletions tests_zemu/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jest.setTimeout(30000)

const example_tx_str_basic = {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down Expand Up @@ -99,7 +99,7 @@ const example_tx_str_expert = {

const example_tx_str_combined = {
"account_number": "108",
"chain_id": "cosmoshub-3",
"chain_id": "cosmoshub-4",
"fee": {
"amount": [
{
Expand Down

0 comments on commit 8a0f214

Please sign in to comment.