Skip to content

Commit 07edb22

Browse files
authored
fix: update transporter private_keys in migration (#232)
<!-- 🚨 ATTENTION! 🚨 This PR template is REQUIRED. PRs not following this format will be closed without review. Requirements: - PR title must follow commit conventions: https://www.conventionalcommits.org/en/v1.0.0/ - Label your PR with the correct type (e.g., 🐛 Bug, ✨ Enhancement, 🧪 Test, etc.) - Provide clear and specific details in each section --> **Motivation:** <!-- Explain here the context, and why you're making that change. What is the problem you're trying to solve. --> As a devkit user, I want to the migration process to update the transporter keys so that the transporter is correctly authed to work on sepolia. **Modifications:** <!-- Describe the modifications you've done from a high level. What are the key technical decisions and why were they made? --> - Updates v0.0.7 migration to copy new keys to context **Result:** <!-- *After your change, what will change. --> - Correct keys will be in place for transporter **Testing:** <!-- *List testing procedures taken and useful artifacts. --> - Tested locally against hotdog-havoc
1 parent 6b37e7d commit 07edb22

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

config/contexts/migrations/v0.0.6-v0.0.7.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ func Migration_0_0_6_to_0_0_7(user, old, new *yaml.Node) (*yaml.Node, error) {
4444
return &yaml.Node{Kind: yaml.ScalarNode, Value: "31338"}
4545
},
4646
},
47+
// Update the transporter private_key
48+
{
49+
Path: []string{"context", "transporter", "private_key"},
50+
Condition: migration.Always{},
51+
Transform: func(_ *yaml.Node) *yaml.Node {
52+
return &yaml.Node{Kind: yaml.ScalarNode, Value: "0x5f8e6420b9cb0c940e3d3f8b99177980785906d16fb3571f70d7a05ecf5f2172"}
53+
},
54+
},
55+
// Update the transporter bls_private_key
56+
{
57+
Path: []string{"context", "transporter", "bls_private_key"},
58+
Condition: migration.Always{},
59+
Transform: func(_ *yaml.Node) *yaml.Node {
60+
return &yaml.Node{Kind: yaml.ScalarNode, Value: "0x5f8e6420b9cb0c940e3d3f8b99177980785906d16fb3571f70d7a05ecf5f2172"}
61+
},
62+
},
4763
// Update allocation_manager for l1 chain
4864
{
4965
Path: []string{"context", "eigenlayer", "l1", "allocation_manager"},

0 commit comments

Comments
 (0)