File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 6
6
"github.com/ethereum/go-ethereum/common"
7
7
)
8
8
9
+ // TODO: rewrite using interface and implement it for each type
10
+
9
11
// SmartWalletConfig represents the configuration
10
12
// for the smart wallet to be used with the client.
11
13
type Config struct {
Original file line number Diff line number Diff line change
1
+ package smart_wallet
2
+
3
+ import (
4
+ "fmt"
5
+
6
+ "github.com/ethereum/go-ethereum/common/hexutil"
7
+ )
8
+
9
+ func GetStubSignature (swt Type ) ([]byte , error ) {
10
+ switch swt {
11
+ case SimpleAccountType , BiconomyType :
12
+ return hexutil .Decode ("0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c" )
13
+ case KernelType :
14
+ return hexutil .Decode ("0x00000000fffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c" )
15
+ default :
16
+ return nil , fmt .Errorf ("unknown smart wallet type: %s" , swt )
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments