github OffchainLabs/stylus-sdk-rs v0.2.0
Stylus SDK 0.2.0

latest releases: v0.6.0, v0.4.3, v0.4.2...
14 months ago

This release makes a few improvements based on community feedback. You can upgrade to this release by changing the following in your Cargo.toml

stylus-sdk = "0.2.0"

Alloy FixedBytes

abi::FixedBytes has been removed in favor of Alloy's FixedBytes. This makes the following much more intuitive

pub fn root(&self) -> Result<B256, Vec<u8>> {
    Ok(self.root.get().into())
}

EVM affordances now return better types

Some EVM affordances, like block::basefee returned B256. Those likely to be used in math now return U256.

Interface fixes

Importing interface methods with empty args or methods that are write caused compile errors. These have now been fixed.

sol_interface! {
    interface IClass {
        function empty_args();
        function write_method(bytes32);
    }
}

Don't miss a new stylus-sdk-rs release

NewReleases is sending notifications on new releases.