Closed vertti closed 2 years ago
Ok, it seems that having any .sol
file that contains only a struct
will crash surya. So for example add a Fee.sol
with contents:
pragma solidity ^0.8.0;
struct FeeSettings {
uint maxFee;
uint defaultFee;
uint protocolTax;
}
and running surya against it will throw the above error message.
Sorry for the delay in answering, @vertti !
This had in fact been fixed in the versions for quite a while, but that is not the default version NPM releases. 😞 Apologies!
I just released a new major version that includes the previous fixes and should work with globals.
Next time something like this happens feel free to peek into: https://www.npmjs.com/package/surya and download one of the latest dev versions by running npm install -g surya@0.x.y-dev.z
.
Apologies! 😊 🙏
Tried surya on my set of contracts:
Any idea what could be the cause? Or any way you could improve error messages, if this is something caused by my contracts to narrow down the hunt? Thanks!