- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
fix Sui e2e test #20156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Sui e2e test #20156
Conversation
| 
               | 
          ||
| paramValues := []any{ | ||
| decodedTokenReceiver, | ||
| msg.TokenReceiverATA, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably have to change existing ccip tests inputs then
Also in what cases will msg.Reciever != tokenReciever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is only possible when sending tokens to Sui or Solana bc in their extra args, we define a token receiver field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm so we probably won't be sending tokens to SUI from SUI. So msg.Reciever != tokenReciever only applies to solana case then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. but when it's a pure token transfer, we should not set msg.receiver, right? we should only set token receiver in extra args in that case.
| ExtraArgs: extraArgs, | ||
| FeeToken: feeToken, | ||
| TokenAmounts: tokens.([]SuiTokenAmount), | ||
| TokenReceiverATA: common.LeftPadBytes(tokenReceiverATA, 32), | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just set to empty for now? I don't see any test where this value is non zero
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are used in those test cases at line 416 of ccip_sui_token_transfer_test.go. before this, they won't be passed in properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 416 of ccip_sui_token_transfer_test.go is test from EVM -> SUI tho, whereas the above change seems like it's impacting SUI -> EVM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tokenRecieverATA is just suiAddress EOA that recieves the token on destination chain
…chainlink into fix-sui-e2e-test
          
 | 
    





Requires
Supports