Skip to content

Eth invoke and ethereum tx refactoring - #657

Merged
nickeskov merged 10 commits into
eth-invoke-expression-txfrom
eth-invoke-and-ethereum-tx-refactoring
Feb 7, 2022
Merged

Eth invoke and ethereum tx refactoring#657
nickeskov merged 10 commits into
eth-invoke-expression-txfrom
eth-invoke-and-ethereum-tx-refactoring

Conversation

@esuwu

@esuwu esuwu commented Jan 25, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pkg/proto/invoke_union.go Outdated
Comment thread pkg/proto/invoke_union.go Outdated
Comment thread pkg/ride/converters.go Outdated
Comment thread pkg/state/appender.go Outdated
Comment thread pkg/state/appender.go Outdated
Comment thread pkg/state/invoke_applier.go Outdated
return nil, err
}
default:
return nil, errors.New("wrong sub transaction of invoke expression transaction")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add info about type to the error message.

Comment thread pkg/state/invoke_applier.go Outdated
Comment thread pkg/state/script_caller.go Outdated
Comment thread pkg/state/script_caller.go Outdated
Comment on lines +230 to +231
case *proto.InvokeScriptTxUnion:
switch subTx := invokeType.SubTx.(type) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think it's good idea to move all code from this case to new function.

Comment thread pkg/state/script_caller.go Outdated
Comment on lines +293 to +294
case *proto.InvokeExpressionTxUnion:
switch subTx := invokeType.SubTx.(type) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think it's good idea to move all code from this case to new function.

@nickeskov nickeskov added the wip This is a WIP, should not be merged right away label Jan 27, 2022
@esuwu esuwu removed the wip This is a WIP, should not be merged right away label Feb 2, 2022
@nickeskov
nickeskov self-requested a review February 7, 2022 11:54

@nickeskov nickeskov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Almost all issues were fixed, approving.

@nickeskov
nickeskov merged commit db9cf6f into eth-invoke-expression-tx Feb 7, 2022
@nickeskov
nickeskov deleted the eth-invoke-and-ethereum-tx-refactoring branch February 7, 2022 12:26
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.

2 participants