Skip to content

Commit

Permalink
Merge pull request #25 from libevm/patch-1
Browse files Browse the repository at this point in the history
Merged penguinbuild extradata
  • Loading branch information
metachris authored Jan 18, 2024
2 parents 0c4cd53 + 21ade9a commit dd94992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vars/builder_aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import (

// BuilderAliases maps builder name to a function that returns if an input string (extra_data) is an alias
var BuilderAliases = map[string]func(string) bool{
"penguinbuild.org": func(in string) bool {
return strings.Contains(in, "penguinbuild.org")
},
"builder0x69": func(in string) bool {
return strings.Contains(in, "builder0x69")
},
Expand Down
1 change: 1 addition & 0 deletions vars/builder_aliases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

func TestBuilderAliases(t *testing.T) {
require.Equal(t, "penguinbuild.org", BuilderNameFromExtraData("@penguinbuild.org"))
require.Equal(t, "foobar", BuilderNameFromExtraData("foobar"))
require.Equal(t, "builder0x69", BuilderNameFromExtraData("@builder0x69"))
require.Equal(t, "bob the builder", BuilderNameFromExtraData("s1e2xf"))
Expand Down

0 comments on commit dd94992

Please sign in to comment.