Skip to content

Commit fbd1d10

Browse files
spkjpfaustbrian
authored andcommitted
fix: set network (#26)
* fix: set network version * chore: changelog
1 parent 4669fce commit fbd1d10

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Unreleased
99

10+
## 0.1.2 - 2018-12-11
11+
12+
### Changed
13+
- Set `network` field on transaction
14+
1015
## 0.1.1 - 2018-12-11
1116

1217
### Fixed

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ uploadArchives {
3434
mavenDeployer {
3535
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
3636

37-
// repository(url: "file://${buildDir}/repo") {}
37+
repository(url: "file://${buildDir}/repo") {}
3838

39-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
40-
authentication(userName: '', password: '')
41-
}
39+
//repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
40+
// authentication(userName: '', password: '')
41+
// }
4242

4343
// snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
4444
// authentication(userName: ossrhUsername, password: ossrhPassword)
4545
// }
4646

4747
pom.project {
4848
groupId = 'org.arkecosystem'
49-
version = '0.1.1'
50-
artifactId = 'arkecosystem-crypto'
49+
version = '0.1.2'
50+
artifactId = 'crypto'
5151

5252
name = 'java-crypto'
5353
description = 'A simple Cryptography Implementation in Java for the Ark Blockchain.'
@@ -79,7 +79,7 @@ uploadArchives {
7979
scm {
8080
connection = 'scm:git:git://github.com/ArkEcosystem/java-crypto.git'
8181
developerConnection = 'scm:git:ssh://github.com:ArkEcosystem/java-crypto.git'
82-
url = 'https://github.com/ArkEcosystem/java-crypto/tree/0.1.1'
82+
url = 'https://github.com/ArkEcosystem/java-crypto/tree/0.1.2'
8383
}
8484
}
8585
}

src/main/java/org/arkecosystem/crypto/transactions/builder/AbstractTransaction.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.arkecosystem.crypto.transactions.builder;
22

33
import org.arkecosystem.crypto.configuration.Fee;
4+
import org.arkecosystem.crypto.configuration.Network;
45
import org.arkecosystem.crypto.enums.Types;
56
import org.arkecosystem.crypto.transactions.Transaction;
67
import org.arkecosystem.crypto.utils.Slot;
@@ -14,6 +15,7 @@ public AbstractTransaction() {
1415
this.transaction.fee = Fee.get(this.getType());
1516
this.transaction.timestamp = Slot.time();
1617
this.transaction.version = 1;
18+
this.transaction.network = Network.get().version();
1719
}
1820

1921
public AbstractTransaction sign(String passphrase) {

0 commit comments

Comments
 (0)