-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Adds ability to serialise Raw Sui Swap transactions #4247
base: master
Are you sure you want to change the base?
Conversation
Binary size comparison➡️ aarch64-apple-ios: - 12.92 MB
+ 13.04 MB +125 KB ➡️ aarch64-apple-ios-sim: - 12.92 MB
+ 13.04 MB +125 KB ➡️ aarch64-linux-android: - 16.78 MB
+ 16.97 MB +196 KB ➡️ armv7-linux-androideabi: - 14.16 MB
+ 14.31 MB +150 KB ➡️ wasm32-unknown-emscripten: - 11.89 MB
+ 12.04 MB +157 KB |
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.
LGTM
let Some(gas_payment) = gas_payments.first() else { | ||
return SigningError::err(SigningErrorType::Error_invalid_params) | ||
.context("Gas payment is missing from the transaction"); | ||
}; |
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 should not ignore other gas payments. As I can see, TransactionData::new()
takes only one gas payment, but GasData
allows to store multiple payments.
Please change the signature of the TransactionData::new()
function to be able to take a list of gas payments
Description
This PR adds the ability to accept a raw json and serialise into a Sui Transaction.
How to test
Run tests across all platforms
Types of changes
New feature (non-breaking change which adds functionality)
Checklist
If you're adding a new blockchain