u
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const Action = require('./Action.js')
|
||||
const ticrypto = require('tic-crypto')
|
||||
const ticc = require('tic-crypto')
|
||||
|
||||
const DAD = (module.exports = function ActionTransfer (prop) {
|
||||
this._class = this.constructor.name
|
||||
@@ -16,7 +16,7 @@ MOM.validateMe = function () {
|
||||
return (
|
||||
this.actorPubkey &&
|
||||
this.toAddress &&
|
||||
ticrypto.pubkey2address(this.actorPubkey) !== this.toAddress && // 不能转帐给自己。
|
||||
ticc.pubkey_to_address({ pubkey: this.actorPubkey }) !== this.toAddress && // 不能转帐给自己。
|
||||
this.amount &&
|
||||
this.amount > 0 &&
|
||||
this.fee >= 0
|
||||
|
||||
Reference in New Issue
Block a user