contract_ref!
produces traits with too strong requirements
#1868
Labels
contract_ref!
produces traits with too strong requirements
#1868
Since
contract_ref!
macro produces the "access trait" with the exact same method signatures as the ones on the original contract, sometimes it puts too strong of requirements onself
on the caller's side.Consider the following case:
compiler requires that
psp22_ref
ismut
becausePSP22::transfer(&mut self, ...)
. Even though it should not be necessary on the call side sincepsp22_ref
is just an address and not an actual contract state.The text was updated successfully, but these errors were encountered: