mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
handle change in abi data
This commit is contained in:
parent
474f411924
commit
808927a0d1
1 changed files with 9 additions and 7 deletions
|
@ -20,13 +20,15 @@ extension ContractAbiExtensions on ContractAbi {
|
|||
final anonymous = json["anonymous"] as bool? ?? false;
|
||||
final List<EventComponent<dynamic>> components = [];
|
||||
|
||||
for (final input in json["inputs"] as List) {
|
||||
components.add(
|
||||
EventComponent(
|
||||
_parseParam(input as Map),
|
||||
input['indexed'] as bool? ?? false,
|
||||
),
|
||||
);
|
||||
if (json["inputs"] is List) {
|
||||
for (final input in json["inputs"] as List) {
|
||||
components.add(
|
||||
EventComponent(
|
||||
_parseParam(input as Map),
|
||||
input['indexed'] as bool? ?? false,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
events.add(ContractEvent(anonymous, name, components));
|
||||
|
|
Loading…
Reference in a new issue