You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other words it is enough (I tested this quickly) to adjust the network when we construct mustPayToAddress to make transaction valid and not lock the funds:
paluh
changed the title
Runtime should adjust the network part of the address in the case of mainnet/testnet address mismatch
Prevent tx failure and fund locking during payout caused by address network mismatch
Feb 20, 2024
Runtime should prevent transaction failure when contract contains address with wrong network
Marlowe validator doesn't really care what type of network we use:
when checking signature: https://github.com/input-output-hk/marlowe-plutus/blob/d9c3093270e7af8b335ee2ddce9c0a18be2bd9a3/marlowe-plutus/src/Language/Marlowe/Plutus/Script.hs#L449
when checking payouts: https://github.com/input-output-hk/marlowe-plutus/blob/d9c3093270e7af8b335ee2ddce9c0a18be2bd9a3/marlowe-plutus/src/Language/Marlowe/Plutus/Script.hs#L482
In other words it is enough (I tested this quickly) to adjust the network when we construct
mustPayToAddress
to make transaction valid and not lock the funds:marlowe-cardano/marlowe-runtime/tx/Language/Marlowe/Runtime/Transaction/BuildConstraints.hs
Line 543 in a93cac3
The text was updated successfully, but these errors were encountered: