Skip to content

Commit 3113bbf

Browse files
committed
up
1 parent f9c0a78 commit 3113bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tron/core/services/WhitelistService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static void check(TransactionCapsule transactionCapsule) throws Whitelist
5656
WrappedByteArray from = WrappedByteArray.of(fromAddress);
5757
WrappedByteArray to = WrappedByteArray.of(toAddress);
5858
WrappedByteArray value = whitelist.get(from);
59-
if (Objects.nonNull(value) && (Objects.isNull(toAddress) || !value.equals(to))) {
59+
if (Objects.nonNull(value) && (contractType != ContractType.TransferContract || !value.equals(to))) {
6060
throw new WhitelistException("Not the specified address. "
6161
+ "from:" + Wallet.encode58Check(fromAddress)
6262
+ ", to:" + Wallet.encode58Check(toAddress));

0 commit comments

Comments
 (0)