From: Ardis Lu Date: Mon, 12 Feb 2024 05:03:38 +0000 (-0800) Subject: Add additional check for strict mode X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=ace2aa5f097accff0cbf378cacd5e93c2c69ad55;p=4-byte-gen Add additional check for strict mode --- diff --git a/index.html b/index.html index 667663f..e584440 100644 --- a/index.html +++ b/index.html @@ -378,7 +378,7 @@ if (fn === '') { continue; } - if (fn.substring(0, 8) === 'contract' || fn.substring(0, 17) === 'abstract contract') { + if (fn.substring(0, 15) === 'pragma solidity' || fn.substring(0, 8) === 'contract' || fn.substring(0, 17) === 'abstract contract') { // Use strict-mode splitFunction for full contracts strict = true; continue;