You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like this is an attempt to bring the Solidity coding style into Rust. Is there a technical reason to this, or is this popular just because a lot of smart contract devs are transitioning from Solidity to Rust?
The text was updated successfully, but these errors were encountered:
I see that Anchor is suggesting the use of the
require!
macro, which produces code like this:However this is not idiomatic Rust. Normally in Rust you would see something like this:
I feel like this is an attempt to bring the Solidity coding style into Rust. Is there a technical reason to this, or is this popular just because a lot of smart contract devs are transitioning from Solidity to Rust?
The text was updated successfully, but these errors were encountered: