handle change in abi data

This commit is contained in:
julian 2023-05-01 08:51:55 -06:00
parent 474f411924
commit 808927a0d1

View file

@ -20,6 +20,7 @@ extension ContractAbiExtensions on ContractAbi {
final anonymous = json["anonymous"] as bool? ?? false; final anonymous = json["anonymous"] as bool? ?? false;
final List<EventComponent<dynamic>> components = []; final List<EventComponent<dynamic>> components = [];
if (json["inputs"] is List) {
for (final input in json["inputs"] as List) { for (final input in json["inputs"] as List) {
components.add( components.add(
EventComponent( EventComponent(
@ -28,6 +29,7 @@ extension ContractAbiExtensions on ContractAbi {
), ),
); );
} }
}
events.add(ContractEvent(anonymous, name, components)); events.add(ContractEvent(anonymous, name, components));
} else { } else {