Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Problem: bridge config is hardcoded

Abierto
#1,161 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
go

Línea de trabajo

Start by locating the ERC20 bridge actions and the network configurations that are currently hardcoded. Review how database-owned configuration and CI or test-node setup are handled, then define the table and update path before adding coverage for the configurable behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

hey @williamrusdyputra, since you are owning more of the code of erc20 implementation, can you analyze some suggestions?

My aim here is to make sure we have tests available to cover the implementation.

I see that some actions hardcode configurations of each network. I propose we make this configurable by adding a table network_bridge_config with columns

  • fee
  • treasure_address
  • chain_name

this should only be updated by the db_owner, and would make it more testable in ci tests and test nodes, etc.

It would be better if even the action could accept the alias as a parameter so we could call things like {chain_name}.bridge dynamically. But doesn't seem possible, in the worst case, we would still need to add a bunch of if ... else to have a statement for each chain. The idea is just to have less surface of code for fewer tests.

What do you think about this? Then we can start covering more critical parts with tests

I can take this issue if it aligns with the goal

Lenguaje dominante
Go
Estrellas
7
Forks
3
Merge medio
13 h 15 min
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de trufnetwork/node

Todos los issues de trufnetwork/node

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.