Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Add blockchain assignment to wanchain on Coin init #27

Merged
merged 2 commits into from
Aug 21, 2018
Merged

Conversation

vikmeup
Copy link
Contributor

@vikmeup vikmeup commented Aug 21, 2018

No description provided.

@@ -27,6 +27,8 @@ public struct Coin: Equatable {
blockchain = .ropsten
case Coin.ethereumClassic.coinType:
blockchain = .ethereumClassic
case Coin.wanchain.coinType:
blockchain = .wanchain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't blockchain be Ethereum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanchain has extended transaction format, it includes transaction type. So when we sign we need to distinguish this.

This is types: https://github.com/wanchain/go-wanchain/blob/8bbb49061b4bb371ce034b72e52542beb7d67b95/core/types/transaction.go#L524

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #27 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage    84.7%   84.72%   +0.02%     
==========================================
  Files          47       47              
  Lines        1804     1807       +3     
==========================================
+ Hits         1528     1531       +3     
  Misses        276      276
Impacted Files Coverage Δ
Tests/CoinTests.swift 100% <100%> (ø) ⬆️
Sources/Coin.swift 87.5% <100%> (+1.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3712fe5...083f724. Read the comment docs.

@vikmeup vikmeup merged commit a17620d into master Aug 21, 2018
@vikmeup vikmeup deleted the wanchain-coin branch August 21, 2018 21:09
@vikmeup vikmeup restored the wanchain-coin branch August 21, 2018 22:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants