MCPcopy Create free account
hub / github.com/ethstorage/es-node / TestSignerFactoryFromConfig

Function TestSignerFactoryFromConfig

integration_tests/signature_test.go:27–132  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestSignerFactoryFromConfig(t *testing.T) {
28 t.SkipNow()
29 tests := []struct {
30 name string
31 signerConfig signer.CLIConfig
32 addrFrom common.Address
33 addrTo common.Address
34 wantErr bool
35 }{
36 {
37 "",
38 signer.CLIConfig{
39 PrivateKey: "0x7fb8f46cff75dd565c23e83f3c5aa2693f39cb6a5ede0120666af139cded39af",
40 Mnemonic: "",
41 HDPath: "",
42 },
43 common.HexToAddress("0xd7cc258C5438a392cA1D7873020d5B9971568c00"),
44 clefContract,
45 false,
46 },
47 {
48 "",
49 signer.CLIConfig{
50 PrivateKey: "",
51 Mnemonic: "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat",
52 HDPath: "m/44'/60'/0'/0/0",
53 },
54 common.HexToAddress("0x627306090abab3a6e1400e9345bc60c78a8bef57"),
55 clefContract,
56 false,
57 },
58 {
59 "",
60 signer.CLIConfig{
61 PrivateKey: "",
62 Mnemonic: "",
63 HDPath: "",
64 Endpoint: clefEndpoint,
65 Address: "0x13259366de990b0431e2c97cea949362bb68df12",
66 },
67 common.HexToAddress("0x13259366DE990B0431E2C97CEa949362BB68df12"),
68 clefContract,
69 false,
70 },
71 {
72 "",
73 signer.CLIConfig{
74 PrivateKey: "",
75 Mnemonic: "",
76 HDPath: "",
77 Endpoint: clefEndpoint,
78 Address: "0x13259366de990b0431e2c97cea949362bb68df12",
79 },
80 common.HexToAddress("0x13259366de990b0431e2c97cea949362bb68df12"),
81 common.HexToAddress("0x0000000000000000000000000000000000001234"), // only allowed to send tx to contractAddrDevnet1
82 true,
83 },
84 }

Callers

nothing calls this directly

Calls 3

SignerFactoryFromConfigFunction · 0.92
LogMethod · 0.80
HashMethod · 0.65

Tested by

no test coverage detected