Giovanni S | Flow (2024-06-27)

I'm running to an issue running accessing a contract value in a Crescendo transaction - 9900f1b3e3d1c2ac98b4d70662b6e24506dc7ef745854f5467da1eeca4bae52f

I need to access the dereferenced EVMAddress value in order to encode it. I also tried dereferencing in e971eb7ebfb42f2774032c98bb4be710626fb1cd8c838667af42b30a0d6e8cfb with
*
operator but I'm getting an error

[Error Code: 1101] error caused by: 1 error occurred:
    * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot apply unary operation * to type
  --> cfa5ce8cd7444c5a3ae8f4dc4aa4a237e6d86157c9134464aec93931210cb0e2:23:33
   |
23 |         let factoryEVMAddress = *FlowEVMBridgeUtils.bridgeFactoryEVMAddress
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected primitive or container of primitives, got `EVM.EVMAddress`

Anyone know how I should be accessing contract fields by value now?
Was this page helpful?