Skip to content

Commit

Permalink
Merge pull request #390 from casper-ecosystem/new-transfer-with-optio…
Browse files Browse the repository at this point in the history
…nal-id

newTransferWithOptionalTransferId use PublicKey
  • Loading branch information
hoffmannjan authored Feb 9, 2024
2 parents 7739d22 + cfa3c44 commit 6253538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Removed
-->

## [2.15.4] - 2024-02-01
## [2.15.4] - 2024-02-08

### Fixed

- `newTransferWithOptionalTransferId` now uses `PublicKey` as a target instead of `AccountHash`.
- Fixed implementation of `EventStream`. Previous one had problems when there was two events emmited in the same time.

## [2.15.3] - 2023-10-16
Expand Down
5 changes: 1 addition & 4 deletions src/lib/DeployUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,10 +984,7 @@ export class ExecutableDeployItem implements ToBytes {
if (target instanceof CLURef) {
runtimeArgs.insert('target', target);
} else if (target instanceof CLPublicKey) {
runtimeArgs.insert(
'target',
CLValueBuilder.byteArray(target.toAccountHash())
);
runtimeArgs.insert('target', target);
} else {
throw new Error('Please specify target');
}
Expand Down

0 comments on commit 6253538

Please sign in to comment.