-
Notifications
You must be signed in to change notification settings - Fork 29
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
clients/go: Bump oasis-core to 23.0 #278
Conversation
✅ Deploy Preview for oasisprotocol-sapphire-paratime canceled.
|
4e2787c
to
de3d537
Compare
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.
Makeshift e2e script in #206
a17c3ee
to
59cdfc7
Compare
925c330
to
30e17d3
Compare
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 thing still needs some refactoring.
This current API seems confusing and error-prone. It looks like it has two hooks to manipulate transactions:
I think it would be better if |
61b1884
to
9166cc1
Compare
854292b
to
c74ef18
Compare
c74ef18
to
f2543be
Compare
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.
As mentioned above, I think we should remove the hacky SendTransaction
behavior unless there is a good reason to keep it.
9c7ade3
to
3115fee
Compare
2e4eed0
to
0e5924b
Compare
0e5924b
to
b615766
Compare
I suppose this'll effect a minor version bump? |
dataPack, err := NewDataPack(sign, chainID.Uint64(), msg.From[:], msg.To[:], 0, msg.GasPrice, msg.Value, msg.Data, leash) | ||
func PackSignedCall(msg ethereum.CallMsg, cipher Cipher, sign SignerFn, chainID big.Int, leash *evm.Leash) (*ethereum.CallMsg, error) { | ||
if msg.Gas == 0 { | ||
msg.Gas = DefaultGasLimit // Must be non-zero for signed calls. |
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.
So even 1
will work right? Just confirming as we don't use DefaultGasLimit
otherwise.
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.
1 will "work" in the sense that it will pass signature verification, but probably won't be enough to actually run anything useful.
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.
👍 I thought this was overriding the the msg.Gas
, but it is not.
This PR: