Skip to content

fix: Use Memo type to submit/display multi-sig transactions#110

Merged
stanleyjones merged 12 commits intoliftedinit:mainfrom
stanleyjones:fix-memo-type
Mar 1, 2023
Merged

fix: Use Memo type to submit/display multi-sig transactions#110
stanleyjones merged 12 commits intoliftedinit:mainfrom
stanleyjones:fix-memo-type

Conversation

@stanleyjones
Copy link
Copy Markdown
Contributor

Also see liftedinit/many-js#96

Fixes #109

@stanleyjones stanleyjones self-assigned this Mar 1, 2023
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 1, 2023

Deploy Preview for lifted-alberto ready!

Name Link
🔨 Latest commit 4f791d9
🔍 Latest deploy log https://app.netlify.com/sites/lifted-alberto/deploys/63ffc5b08c988e0009acb803
😎 Deploy Preview https://deploy-preview-110--lifted-alberto.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@stanleyjones stanleyjones changed the title Fix memo type fix: Use Memo type to submit/display multi-sig transactions Mar 1, 2023
@stanleyjones stanleyjones requested a review from hansl March 1, 2023 05:31
Comment thread src/features/transactions/components/send-asset/send-asset.tsx Outdated
Comment thread package.json Outdated
const { memo, executeAutomatically, threshold, transaction, submitter } =
(multisigTxnInfoData?.info ?? {}) as MultisigTransactionInfo

const memoStr = memo && typeof memo[0] === "string" ? memo[0] : ""
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could also do a map here. Depends on how many human-readable memos we expect transactions to have.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the 1 from the UI for now so I think that's fine.

@stanleyjones stanleyjones requested a review from hansl March 1, 2023 21:44
@stanleyjones
Copy link
Copy Markdown
Contributor Author

Tested with alberto.liftedinit.dev and seems to be working.

@stanleyjones stanleyjones merged commit d02dd69 into liftedinit:main Mar 1, 2023
@stanleyjones stanleyjones deleted the fix-memo-type branch March 1, 2023 22:18
stanleyjones added a commit to stanleyjones/alberto that referenced this pull request Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memos should be an array not a string

2 participants