Skip to content

Commit

Permalink
fix: set network (#26)
Browse files Browse the repository at this point in the history
* fix: set network version

* chore: changelog
  • Loading branch information
spkjp authored and faustbrian committed Dec 12, 2018
1 parent 4669fce commit fbd1d10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 0.1.2 - 2018-12-11

### Changed
- Set `network` field on transaction

## 0.1.1 - 2018-12-11

### Fixed
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ uploadArchives {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

// repository(url: "file://${buildDir}/repo") {}
repository(url: "file://${buildDir}/repo") {}

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

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

pom.project {
groupId = 'org.arkecosystem'
version = '0.1.1'
artifactId = 'arkecosystem-crypto'
version = '0.1.2'
artifactId = 'crypto'

name = 'java-crypto'
description = 'A simple Cryptography Implementation in Java for the Ark Blockchain.'
Expand Down Expand Up @@ -79,7 +79,7 @@ uploadArchives {
scm {
connection = 'scm:git:git://github.com/ArkEcosystem/java-crypto.git'
developerConnection = 'scm:git:ssh://github.com:ArkEcosystem/java-crypto.git'
url = 'https://github.com/ArkEcosystem/java-crypto/tree/0.1.1'
url = 'https://github.com/ArkEcosystem/java-crypto/tree/0.1.2'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.arkecosystem.crypto.transactions.builder;

import org.arkecosystem.crypto.configuration.Fee;
import org.arkecosystem.crypto.configuration.Network;
import org.arkecosystem.crypto.enums.Types;
import org.arkecosystem.crypto.transactions.Transaction;
import org.arkecosystem.crypto.utils.Slot;
Expand All @@ -14,6 +15,7 @@ public AbstractTransaction() {
this.transaction.fee = Fee.get(this.getType());
this.transaction.timestamp = Slot.time();
this.transaction.version = 1;
this.transaction.network = Network.get().version();
}

public AbstractTransaction sign(String passphrase) {
Expand Down

0 comments on commit fbd1d10

Please sign in to comment.