return MissingFieldsError(missing...)
}
- if a.AssetId != consensus.BTMAssetID {
+ if a.AssetId.String() != consensus.BTMAssetID.String() {
return errors.New("register contract action asset must be BTM")
}
func isInvalidBCRPTx(tx *types.Tx) bool {
for _, output := range tx.TxData.Outputs {
if bcrp.IsBCRPScript(output.ControlProgram) {
- if output.AssetId != consensus.BTMAssetID || output.Amount < consensus.BCRPRequiredBTMAmount {
+ if output.AssetId.String() != consensus.BTMAssetID.String() || output.Amount < consensus.BCRPRequiredBTMAmount {
return true
}
}