Skip to content

Update swarm chequebook for latest Solidity#15425

Merged
fjl merged 4 commits into
ethereum:masterfrom
axic:chequebook-update
Nov 10, 2017
Merged

Update swarm chequebook for latest Solidity#15425
fjl merged 4 commits into
ethereum:masterfrom
axic:chequebook-update

Conversation

@axic
Copy link
Copy Markdown
Member

@axic axic commented Nov 4, 2017

No description provided.

@axic
Copy link
Copy Markdown
Member Author

axic commented Nov 6, 2017

I think the bytecode in the .go file needs to be updated before merging this.

Is that so @nagydani?

bytes32 hash = sha3(address(this), beneficiary, amount);
if(owner != ecrecover(hash, sig_v, sig_r, sig_s)) return;
bytes32 hash = keccak256(address(this), beneficiary, amount);
require(owner == ecrecover(hash, sig_v, sig_r, sig_s));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These two require changes change behaviour: before if the owner/amount didn't match, it resulted in a successful execution without doing anything; now it results in a failed execution using the revert opcode (remainder gas is not consumed).

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.

Is that good or bad @nagydani ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think, it is okay. The actual effect is the same: nothing changes in the state and remaining gas is not consumed.

Copy link
Copy Markdown

@nagydani nagydani left a comment

Choose a reason for hiding this comment

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

I agree with all these changes.

Ethereum Foundation changed email domain.
@GitCop
Copy link
Copy Markdown

GitCop commented Nov 10, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: 94fb8b1
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@fjl fjl merged commit b31cc71 into ethereum:master Nov 10, 2017
@karalabe karalabe added this to the 1.7.3 milestone Nov 10, 2017
@axic axic deleted the chequebook-update branch November 10, 2017 12:29
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.

6 participants