Skip to content

Fix: SystemExecution and ActorsCache #397

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

Merged
merged 8 commits into from
May 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: account universal receiver hook
  • Loading branch information
ziscky committed May 29, 2025
commit e5787f499453450023621cea601b4de1ab30953c
4 changes: 2 additions & 2 deletions actors/v2/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ func GetMethodName(ctx context.Context, methodNum abi.MethodNum, actorName strin
}

if strings.Contains(actorName, manifest.AccountKey) {
if version.NodeVersion() == tools.V17.NodeVersion() {
if version.NodeVersion() <= tools.V17.NodeVersion() {
// https://github.com/filecoin-project/builtin-actors/blob/0c3720c05da4733c3a5ed39c124bc8027c143aa8/actors/account/src/lib.rs#L107
return parser.MethodUniversalReceiverHook, nil
} else if version.NodeVersion() > tools.V17.NodeVersion() {
} else {
// https://github.com/filecoin-project/builtin-actors/blob/8fdbdec5e3f46b60ba0132d90533783a44c5961f/actors/account/src/lib.rs#L96
if methodNum >= abi.MethodNum(parser.FirstExportedMethodNumber) {
return parser.MethodFallback, nil
Expand Down