Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

set

Write a record with its ID, layout and new value.

Arguments

  • table - the table selector
  • key - key of the record to write
  • value - the new raw unpacked data value of the record
  • offset - the offset in value to start writing from
  • layout - the layout of the record to write.

Fully qualified path: dojo::storage::database::set

pub fn set(table: felt252, key: felt252, value: Span<felt252>, offset: u32, layout: Span<u8>)