File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
contract/AElf.Contracts.MultiToken Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -215,16 +215,10 @@ private Address ExtractTokenContractAddress(ByteString bytes)
215215 private void AssertCrossChainTransaction ( Transaction originalTransaction , Address validAddress ,
216216 params string [ ] validMethodNames )
217217 {
218- var validateResult = validMethodNames . Contains ( MaybeRecoverInlineTransactionFunctionName ( originalTransaction . MethodName ) )
218+ var validateResult = validMethodNames . Contains ( originalTransaction . MethodName )
219219 && originalTransaction . To == validAddress ;
220220 Assert ( validateResult , "Invalid transaction." ) ;
221221 }
222-
223- private static string MaybeRecoverInlineTransactionFunctionName ( string methodName )
224- {
225- var parts = methodName . Split ( '.' ) ;
226- return parts . Length > 1 ? parts [ ^ 2 ] : methodName ;
227- }
228222
229223 private void RegisterTokenInfo ( TokenInfo tokenInfo )
230224 {
You can’t perform that action at this time.
0 commit comments