Skip to content

Commit

Permalink
Fix primary node (#1205)
Browse files Browse the repository at this point in the history
* Fix primary node

* Fix Java and nodejs binding, add changelog

* Add comment

* Apply suggestion

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
Thoralf-M and thibault-martinez authored Aug 22, 2022
1 parent 0b7c7ef commit 218352d
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 172 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed `snapshot_loaded` field from StrongholdAdapter;
- Removed `outputs()` field from GetAddressBuilder;
- Stronghold's `encryption` module;
- Primary node usage;

### Fixed

Expand Down
169 changes: 22 additions & 147 deletions bindings/java/iota-client-java/native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.iota.types.*;
import org.iota.types.ids.BlockId;
import org.iota.types.ids.OutputId;
import org.iota.types.secret.GenerateAddressesOptions;
import org.iota.types.secret.Range;
import org.iota.types.secret.SecretManager;

Expand Down Expand Up @@ -98,7 +99,7 @@ public LinkedHashMap<BlockId, Block> retryUntilIncluded(BlockId blockId, int int
public String consolidateFunds(SecretManager secretManager, GenerateAddressesOptions generateAddressesOptions) throws ClientException {
JsonObject o = new JsonObject();
o.add("secretManager", secretManager.getJson());
o.add("generateAddressesOptions", generateAddressesOptions.getAsJson());
o.add("generateAddressesOptions", generateAddressesOptions.getJson());

String responsePayload = callBaseApi(new ClientCommand("ConsolidateFunds", o)).getAsString();

Expand Down
1 change: 0 additions & 1 deletion bindings/nodejs/lib/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import type {
SecretManager,
INode,
IAuth,
IRange,
IBasicOutputBuilderOptions,
IAliasOutputBuilderOptions,
IFoundryOutputBuilderOptions,
Expand Down
1 change: 0 additions & 1 deletion bindings/nodejs/types/bridge/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type {
QueryParameter,
} from '../queryParameters';
import type { IAuth } from '../network';
import type { IRange } from '../range';
import type { IBasicOutputBuilderOptions } from '../outputBuilderOptions/basicOutputOptions';
import type { IAliasOutputBuilderOptions } from '../outputBuilderOptions/aliasOutputOptions';
import type { IFoundryOutputBuilderOptions } from '../outputBuilderOptions/foundryOutputOptions';
Expand Down
Loading

0 comments on commit 218352d

Please sign in to comment.