Skip to content

Commit

Permalink
feat: incorporate changes to AuthenticateMessage (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored Feb 24, 2023
1 parent 67d56f8 commit d8fdbda
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const (
)

var MethodsAccount = struct {
Constructor abi.MethodNum
PubkeyAddress abi.MethodNum
AuthenticateMessage abi.MethodNum
Constructor abi.MethodNum
PubkeyAddress abi.MethodNum
AuthenticateMessage abi.MethodNum
}{
MethodConstructor,
2,
Expand Down Expand Up @@ -394,9 +394,7 @@ var MethodsPlaceholder = struct {
}

var MethodsEthAccount = struct {
Constructor abi.MethodNum
AuthenticateMessage abi.MethodNum
Constructor abi.MethodNum
}{
MethodConstructor,
MustGenerateFRCMethodNum("AuthenticateMessage"),
}
3 changes: 2 additions & 1 deletion builtin/v10/account/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package account

import (
"github.com/filecoin-project/go-address"
typegen "github.com/whyrusleeping/cbor-gen"

"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/builtin"
Expand All @@ -10,5 +11,5 @@ import (
var Methods = map[abi.MethodNum]builtin.MethodMeta{
1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor
2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)}, // AuthenticateMessage
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage
}
1 change: 0 additions & 1 deletion builtin/v10/ethaccount/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ import (

var Methods = map[abi.MethodNum]builtin.MethodMeta{
1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)},
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)}, // AuthenticateMessage
}
3 changes: 2 additions & 1 deletion builtin/v11/account/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package account

import (
"github.com/filecoin-project/go-address"
typegen "github.com/whyrusleeping/cbor-gen"

"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/builtin"
Expand All @@ -10,5 +11,5 @@ import (
var Methods = map[abi.MethodNum]builtin.MethodMeta{
1: {"Constructor", *new(func(*address.Address) *abi.EmptyValue)}, // Constructor
2: {"PubkeyAddress", *new(func(*abi.EmptyValue) *address.Address)}, // PubkeyAddress
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)}, // AuthenticateMessage
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *typegen.CborBool)}, // AuthenticateMessage
}
1 change: 0 additions & 1 deletion builtin/v11/ethaccount/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ import (

var Methods = map[abi.MethodNum]builtin.MethodMeta{
1: {"Constructor", *new(func(value *abi.EmptyValue) *abi.EmptyValue)},
builtin.MustGenerateFRCMethodNum("AuthenticateMessage"): {"AuthenticateMessage", *new(func(*AuthenticateMessageParams) *abi.EmptyValue)}, // AuthenticateMessage
}

0 comments on commit d8fdbda

Please sign in to comment.