Skip to content

Commit bc80e28

Browse files
committed
Revert "⚡️ Make parsable big number string as covariant of Fixed classes (#88)"
This reverts commit 69cd117.
1 parent d8c0f17 commit bc80e28

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ that can be found in the LICENSE file. -->
44

55
# Changelog
66

7-
## 1.0.0-dev.32
8-
9-
- Make parsable big number string as covariant of Fixed classes.
10-
117
## 1.0.0-dev.31
128

139
- Treat parsable big number string as a covariant of the `Nat` class.

packages/agent_dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart
2-
version: 1.0.0-dev.32
2+
version: 1.0.0-dev.31
33

44
description: |
55
An agent library built for Internet Computer,

packages/agent_dart_base/lib/candid/idl.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,6 @@ class FixedIntClass extends PrimitiveType {
641641
} else if (x is int) {
642642
final v = BigInt.from(x);
643643
return v >= min && v <= max;
644-
} else if (x is String && BigInt.tryParse(x) != null) {
645-
final v = BigInt.parse(x);
646-
return v >= min && v <= max;
647644
} else {
648645
return false;
649646
}
@@ -704,11 +701,6 @@ class FixedNatClass extends PrimitiveType<dynamic> {
704701
} else if (x is int && x >= 0) {
705702
final v = BigInt.from(x);
706703
return v < max;
707-
} else if (x is String &&
708-
BigInt.tryParse(x) != null &&
709-
BigInt.parse(x) >= BigInt.zero) {
710-
final v = BigInt.parse(x);
711-
return v < max;
712704
} else {
713705
return false;
714706
}

packages/agent_dart_base/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart_base
2-
version: 1.0.0-dev.32
2+
version: 1.0.0-dev.31
33

44
description: The Dart plugin that bridges Rust implementation for agent_dart.
55
repository: https://github.com/AstroxNetwork/agent_dart

packages/agent_dart_ffi/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: agent_dart_ffi
2-
version: 1.0.0-dev.32
2+
version: 1.0.0-dev.31
33

44
description: The FFI plugin that bridges Rust implementation for agent_dart.
55
repository: https://github.com/AstroxNetwork/agent_dart

0 commit comments

Comments
 (0)