Skip to content
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

add DirectPost support & upgrade meson version #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LYC386
Copy link

@LYC386 LYC386 commented Sep 19, 2023

  • Updates FillTx and SendTx function to support querying gas and sending tx using DirectPost command.
    Corresponds to Meson PR.

  • Updates Meson version

@@ -1,4 +1,4 @@
KSLocation = "/tmp/meson-wallet/keystore"
KSLocation = "/Users/liaoyuchen/Developer/Meson-wallet-demo/keystore"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change the location of this since this is unique to your own machine

Copy link
Author

Choose a reason for hiding this comment

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

Changed, thanks!

@@ -15,7 +15,7 @@ DefaultChainID = 5
[Meson]
[Meson.Logging]
Disable = false
File = "/tmp/meson-wallet/wallet.log"
File = "/Users/liaoyuchen/Developer/Meson-wallet-demo/wallet.log"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Copy link
Author

Choose a reason for hiding this comment

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

Changed, thanks!

})
if err != nil {
return nil, err
}
req := common.NewRequest(command.EthQuery, w.Ticker(chainID), payload).ToJson()
req := common.NewRequest(0x01, w.Ticker(chainID), payload).ToJson()
Copy link
Contributor

Choose a reason for hiding this comment

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

@LYC386 IMHO, it might be better to use command.DirectPost.

if err != nil {
return "", err
}
req := common.NewRequest(command.PostTransaction, w.Ticker(tx.ChainId().Int64()), payload).ToJson()
req := common.NewRequest(0x01, w.Ticker(tx.ChainId().Int64()), payload).ToJson()
Copy link
Contributor

Choose a reason for hiding this comment

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

and here

Copy link
Contributor

Choose a reason for hiding this comment

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

also you might want to change the comment

@sc0Vu sc0Vu mentioned this pull request Nov 13, 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.

3 participants