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
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Before a trs is executed, the following logic is applied:
minFee = MIN_FEE_PER_BYTE * size(trs)
+ extraFee(trs.moduleID, trs.commandID)
senderAddress is derived from trs.senderPublicKey
generatorAddress is the address of the generator of the block including trs
if FEE_TOKEN_ID.chainID == 0: # fee token is a native token
token.burn(senderAddress,
FEE_TOKEN_ID,
minFee)
token.transfer(senderAddress,
generatorAddress,
FEE_TOKEN_ID,
trs.fee - minFee)
else:
token.transfer(senderAddress,
generatorAddress,
FEE_TOKEN_ID,
trs.fee)
If any of those function fails, the trs is invalid.
Acceptance Criteria
The beforeTransactionExecution hook should implement the above logic.
Description
Before a
trs
is executed, the following logic is applied:If any of those function fails, the
trs
is invalid.Acceptance Criteria
beforeTransactionExecution
hook should implement the above logic.Additional Information
Related issue: #6691
The text was updated successfully, but these errors were encountered: