let (result : ERC721PUT*) = alloc()
let (local _bid : ERC721PUT) = bids.read(bid_index)
memcpy(result, &_bid, ERC721PUT.SIZE) curious why this will not work? is &_bid not appropriate here ?
bids is a storage_var
I get this \nUnknown value for memory cell at address 12:12.\n assert [frame.dst] = [frame.src]\n
This doesnโt work because &_bid refers to a local variable in memory, not a storage reference. bids.read(bid_index) loads the value into memory, but memcpy expects both source and destination to be valid memory addresses. _bid is a value, not a pointer. You canโt take its address like that. Instead, write each field manually or load directly into result.