mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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,6 +20,7 @@ extension ContractAbiExtensions on ContractAbi {
|
|||
final anonymous = json["anonymous"] as bool? ?? false;
|
||||
final List<EventComponent<dynamic>> components = [];
|
||||
|
||||
if (json["inputs"] is List) {
|
||||
for (final input in json["inputs"] as List) {
|
||||
components.add(
|
||||
EventComponent(
|
||||
|
@ -28,6 +29,7 @@ extension ContractAbiExtensions on ContractAbi {
|
|||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
events.add(ContractEvent(anonymous, name, components));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue