Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Program activated event edits #162

Merged

Conversation

rachel-bousfield
Copy link
Contributor

Updates the following with a few tweaks

Notably

  • Since con.ProgramActivated burns gas, we remove the prior gas check
  • Minor type tweaks & renamings

@cla-bot cla-bot bot added the s label Oct 3, 2023
Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

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

small comment

@@ -884,18 +884,18 @@ func TestProgramAcivationLogs(t *testing.T) {
if len(receipt.Logs) != 1 {
Fatal(t, "expected 1 log while activating, got ", len(receipt.Logs))
}
parsed, err := arbWasm.ParseProgramActivated(*receipt.Logs[0])
log, err := arbWasm.ParseProgramActivated(*receipt.Logs[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

log is a bad name for a var.. in most of our codebase log is geth's log module name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a reasonable argument, though let's keep it for now only because we use that name elsewhere in this folder when we have logs.

@rachel-bousfield rachel-bousfield merged commit a7a6dd4 into program-activated-event Oct 3, 2023
6 checks passed
@rachel-bousfield rachel-bousfield deleted the program-activated-event-edits branch October 3, 2023 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants