(asset)
| 734 | } |
| 735 | |
| 736 | function stripHubMetadata(asset) { |
| 737 | const out = {}; |
| 738 | for (const key of Object.keys(asset || {})) { |
| 739 | if (!HUB_METADATA_KEYS.has(key)) out[key] = asset[key]; |
| 740 | } |
| 741 | return out; |
| 742 | } |
| 743 | |
| 744 | function dryRunEnvelope(bundle, credits) { |
| 745 | const blockReasons = Array.isArray(bundle.blockReasons) ? bundle.blockReasons : []; |