Unverified Commit 824b7823 authored by Adrian Catangiu's avatar Adrian Catangiu Committed by GitHub
Browse files

xcm: SovereignPaidRemoteExporter: remove unused RefundSurplus instruction (#2312)

Refunding surplus happens anyway on xcm_executor::post_process(),
automatically refunding surplus to original_origin at the end of
execution. Since SovereignPaidRemoteExporter doesn't ClearOrigin, it can
simply rely on the automatic mechanism.

Furthermore, RefundSurplus instruction refunds _surplus_. Surplus exists
only as a result of Transact, SetErrorHandler or SetAppendix
instructions, none of which being part of the
SovereignPaidRemoteExporter XCM program. So surplus is always zero here
anyway.
parent 0226b55f
Pipeline #414015 canceled with stages
in 3 minutes and 57 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment