mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
first version of URIToken amendment
This commit is contained in:
@@ -156,6 +156,8 @@ invoke_preflight(PreflightContext const& ctx)
|
||||
return invoke_preflight_helper<ClaimReward>(ctx);
|
||||
case ttINVOKE:
|
||||
return invoke_preflight_helper<Invoke>(ctx);
|
||||
case ttURI_TOKEN:
|
||||
return invoke_preflight_helper<URIToken>(ctx);
|
||||
default:
|
||||
assert(false);
|
||||
return {temUNKNOWN, TxConsequences{temUNKNOWN}};
|
||||
@@ -265,6 +267,8 @@ invoke_preclaim(PreclaimContext const& ctx)
|
||||
return invoke_preclaim<ClaimReward>(ctx);
|
||||
case ttINVOKE:
|
||||
return invoke_preclaim<Invoke>(ctx);
|
||||
case ttURI_TOKEN:
|
||||
return invoke_preclaim<URIToken>(ctx);
|
||||
default:
|
||||
assert(false);
|
||||
return temUNKNOWN;
|
||||
@@ -335,6 +339,8 @@ invoke_calculateBaseFee(ReadView const& view, STTx const& tx)
|
||||
return ClaimReward::calculateBaseFee(view, tx);
|
||||
case ttINVOKE:
|
||||
return Invoke::calculateBaseFee(view, tx);
|
||||
case ttURI_TOKEN:
|
||||
return URIToken::calculateBaseFee(view, tx);
|
||||
default:
|
||||
assert(false);
|
||||
return FeeUnit64{0};
|
||||
@@ -501,6 +507,10 @@ invoke_apply(ApplyContext& ctx)
|
||||
Invoke p(ctx);
|
||||
return p();
|
||||
}
|
||||
case ttURI_TOKEN: {
|
||||
URIToken p(ctx);
|
||||
return p();
|
||||
}
|
||||
default:
|
||||
assert(false);
|
||||
return {temUNKNOWN, false};
|
||||
|
||||
Reference in New Issue
Block a user