Skip to content

Commit

Permalink
🐛 Fix error transaction signature when a value has the 8th decimal > 5
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Nov 15, 2023
1 parent 6e3b7e9 commit 0527f21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
=========
#### Version 3.3.3
* Fix error transaction signature when a value has the 8th decimal > 5

#### Version 3.3.2
* Add Blockchain Version in newKeychainTransaction and newAccessKeychainTransaction methods

Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int toBigInt(num? number) {
if (number == null) {
return 0;
}
return (number * 100000000).round();
return (number * 100000000).floor();
}

/// Convert big int of 10^8 decimals to any number
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: archethic_lib_dart
description: Archethic dart library for Flutter for Node and Browser. This library aims to provide a easy way to create Archethic transaction and to send them over the network
homepage: https://github.com/archethic-foundation/libdart

version: 3.3.2
version: 3.3.3

environment:
sdk: ">=3.1.0 <4.0.0"
Expand Down

0 comments on commit 0527f21

Please sign in to comment.