Skip to content
by Unity Nodes
near-sdk (Rust)Stable

near-sdk (Rust) 5.18.0

near-sdk-v5.18.0github.com

relax owned String requirements (#1404); Add Event::to_event_log() utility function (#1394)

Added

  • relax owned String requirements (#1404)
  • Add Event::to_event_log() utility function (#1394)
  • be explicit about detached Promises (#1400)
  • (near-sdk-macros) #[near(contract_state(key = b"CUSTOM"))] (#1399)
  • optimize Promise::and (#1396)
  • use #[serde_as] for #[near(serializers = [json])] (#1393)
  • Introduce new method ::ext_on(promise) for all Ext Contract Traits for using high-level APIs for batching actions into a single promise receipt (#1413)

Fixed

  • Pass mutable buffers to sys out-params in balance and stake getters (#1412)
  • Fixed the TreeMap::range() method to respect lower Bound::Unbounded (#1408)
  • (serde) avoid String allocation in error mapping for integers and hash (#1411)
  • Fix serde_as and ordering of the fields in AsNep297Event (#1405)
  • Added support for #[private] attribute for #[init] methods (#1410)
  • allow PanicOnDefault on eums (#1401)

Other

  • Use CryptoHash wherever applicable and other small papercut fixes (#1387)
  • fix example header format for readme.md (#1407)