Skip to content

Commit

Permalink
recover btcheader to bytes in types (paritytech#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
atenjin authored Oct 13, 2020
1 parent cfa8263 commit 295552e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions scripts/chainx-js/chainx_types_manual.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,7 @@
]
},
"BtcAddress": "Text",
"BtcCompact": "u32",
"BtcHeader": {
"version": "u32",
"previous_header_hash": "H256",
"merkle_root_hash": "H256",
"time": "u32",
"bits": "BtcCompact",
"nonce": "u32"
},
"BtcHeader": "Vec<u8>",
"BtcTransaction": "Vec<u8>",
"BtcPartialMerkleTree": "Vec<u8>",
"BtcRelayedTxInfo": {
Expand Down
10 changes: 1 addition & 9 deletions scripts/chainx-js/res/chainx_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,7 @@
"AssetRestrictions": {
"mask": "u32"
},
"BtcHeader": {
"version": "u32",
"previousHeaderHash": "H256",
"merkleRootHash": "H256",
"time": "u32",
"bits": "BtcCompact",
"nonce": "u32"
},
"BtcHeader": "Vec<u8>",
"BtcNetwork": {
"_enum": [
"Mainnet",
Expand Down Expand Up @@ -304,7 +297,6 @@
"hotAddress": "BtcTrusteeAddrInfo",
"coldAddress": "BtcTrusteeAddrInfo"
},
"BtcCompact": "u32",
"BtcTransaction": "Vec<u8>",
"BtcPartialMerkleTree": "Vec<u8>",
"BtcRelayedTxInfo": {
Expand Down

0 comments on commit 295552e

Please sign in to comment.