Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tasks/upload_selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ task(
}));

const compositeAbi = Object.values(elements).filter(function (el) {
return el.type === 'function' || el.type === 'event';
return el.type === 'function' || el.type === 'event' || el.type === 'error';
});

compositeAbi.forEach(function (el) {
// We convert all errors to 'function' type, since 4byte.directory not support ABIs that include errors and both types are encoded in the same way.
if (el.type === 'error') {
el.type = 'function';
el.outputs = []
}
});

if (compositeAbi.length === 0) {
Expand Down