Skip to content

Commit

Permalink
hot fix 2: dev n tell
Browse files Browse the repository at this point in the history
  • Loading branch information
code-z2 committed Jan 5, 2024
1 parent fd368e4 commit 3e8f940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/common/contract.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class Contract {
Uint8List? innerCallData}) {
final params = [
to,
amount ?? EtherAmount.zero().getInWei,
amount?.getInWei ?? EtherAmount.zero().getInWei,
innerCallData ?? Uint8List.fromList([])
];

Expand All @@ -197,8 +197,8 @@ class Contract {
List<Uint8List>? innerCalls}) {
final params = [
recipients,
amounts ?? [],
innerCalls ?? [],
amounts?.map<BigInt>((e) => e.getInWei) ?? [],
innerCalls ?? Uint8List.fromList([]),
];
if (innerCalls == null || innerCalls.isEmpty) {
require(amounts != null && amounts.isNotEmpty, "malformed batch request");
Expand Down

0 comments on commit 3e8f940

Please sign in to comment.