-
Notifications
You must be signed in to change notification settings - Fork 32
Multi wallet additional #1791
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
base: staging
Are you sure you want to change the base?
Multi wallet additional #1791
Conversation
balakumarr15
left a comment
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.
Added few basic comments that could improve code clarity. Please check these. Thanks.
| PrintError(err.Error()) | ||
| return "", err | ||
| } | ||
| defer sys.Files.Remove(option.LocalPath) //nolint |
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 deferring here would be fine? If the number of iterations goes long, all accumulated files will be deferred to get deleted at end of function call.
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.
Create an anonymous function within this iteration if it needs to be deleted within this iteration.
|
|
||
| // getMintWZCNPayload returns the mint payload for the given burn transaction hash | ||
| // - burnTrxHash: hash of the burn transaction | ||
| func getMintWZCNPayloadMW(burnTrxHash string, key string) string { //nolint:unused |
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.
Key is passed here but not used. Please check its usage, similar to mintZCNMW function
| // - amountToken: amount of tokens to mint (as a string) | ||
| // - nonce: nonce of the transaction | ||
| // - signaturesRaw: encoded format (base-64) of the burn signatures received from the authorizers. | ||
| func estimateMintWZCNGasAmountMW(from, to, zcnTransaction, amountToken string, nonce int64, signaturesRaw []string, key string) string { // nolint:golint,unused |
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.
Same goes here, key is unused
Multi-Wallet Support & Stability Fixes
This PR introduces comprehensive Multi-Wallet support for the Go SDK and includes critical stability fixes verified by a new system test suite.
1. New Features (Multi-Wallet Support)
_mw.gofiles to expose multi-wallet functionality to web clients (WASM SDK).OwnerPublicKeyfield in Allocation to distinguish between the allocation owner and the specific signing wallet.multiWalletSupportKeylogic, allowing operations to be signed by secondary wallets.2. Stability & Bug Fixes (New)
3. Verification (New System Test Suite)
Added a complete
sdk_testssuite tosystem_testto validate these changes. All 24 tests passed with 0 skips: