#key value pair

2 messages · Page 1 of 1 (latest)

random tiger
#

in the above contract, in method create &issuer (which is an address) is a key for a value which is music(i.e a struct)
now can i use issuer as key for any other datatype
also
in listsale i am having issue
The trait bound soroban_sdk::Val: TryFromVal<Env, SaleDetails> is not satisfied

139
env.storage().persistent().set(&seller, &sale_details);
^ the trait TryFromVal<Env, SaleDetails> is not implemented for soroban_sdk::Val
but i have used it in create also

#

please help me with the fllowing