ek.near

NEAR Live Contract Review | Part 3: Whitelist and Staking Pool Factory

To Share and +4 nLEARNs Login with NEARIntroduction Hello, everyone. Today we’re going to review 2 contracts instead of 1. We will include contracts that involve cross contract calls, and talk about promises, and how they work at NEAR. If you want to learn more about how composability works this is a good session to …

NEAR Live Contract Review | Part 3: Whitelist and Staking Pool Factory Read More »

Learn NEAR Club banner

NEAR Smart Contracts in RUST – Best Practices

To Share and +4 nLEARNs Login with NEARInit once Make sure you check that state doesn’t exists in init using assert!(!env::state_exists(), “The contract is already initialized”); Prevent Default By default near_sdk allows contract to be initialized with default state. Usually, if you have a constructor, you want to prevent default state initialization. impl Default for Contract { fn default() …

NEAR Smart Contracts in RUST – Best Practices Read More »

Scroll to Top