We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c0a78 commit 3113bbfCopy full SHA for 3113bbf
src/main/java/org/tron/core/services/WhitelistService.java
@@ -56,7 +56,7 @@ public static void check(TransactionCapsule transactionCapsule) throws Whitelist
56
WrappedByteArray from = WrappedByteArray.of(fromAddress);
57
WrappedByteArray to = WrappedByteArray.of(toAddress);
58
WrappedByteArray value = whitelist.get(from);
59
- if (Objects.nonNull(value) && (Objects.isNull(toAddress) || !value.equals(to))) {
+ if (Objects.nonNull(value) && (contractType != ContractType.TransferContract || !value.equals(to))) {
60
throw new WhitelistException("Not the specified address. "
61
+ "from:" + Wallet.encode58Check(fromAddress)
62
+ ", to:" + Wallet.encode58Check(toAddress));
0 commit comments