updateTransactionMass() updates the mass property of the passed transaction.
If the transaction is invalid, the function throws an error.
The function returns true if the mass is within the maximum standard transaction mass and
the transaction mass is updated. Otherwise, the function returns false.
This is similar to calculateTransactionMass() but modifies the supplied
Transaction object.
updateTransactionMass()
updates the mass property of the passed transaction. If the transaction is invalid, the function throws an error.The function returns
true
if the mass is within the maximum standard transaction mass and the transaction mass is updated. Otherwise, the function returnsfalse
.This is similar to
calculateTransactionMass()
but modifies the suppliedTransaction
object.