]> git.ardis.lu - 4-byte-gen/commitdiff
Add additional check for strict mode
authorArdis Lu <ardisglu@gmail.com>
Mon, 12 Feb 2024 05:03:38 +0000 (21:03 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 12 Feb 2024 05:03:38 +0000 (21:03 -0800)
index.html

index 667663f00a374093574faa0db89daab70a0cf6b5..e584440dc472e5055073b5aa0e7e836580898172 100644 (file)
         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;
This page took 0.040775 seconds and 4 git commands to generate.