Skip to content

Commit

Permalink
feat: rename token type variants (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 authored Dec 23, 2024
1 parent 57c1884 commit ee85ca0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion multichain-aggregator/multichain-aggregator-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ fn compile(
.bytes(["."])
.btree_map(["."])
.type_attribute(".", "#[actix_prost_macros::serde(rename_all=\"snake_case\")]")
.field_attribute(".blockscout.multichainAggregator.v1.Address.token_type", "#[serde(default)]");
.field_attribute(".blockscout.multichainAggregator.v1.Address.token_type", "#[serde(default)]")
.field_attribute(".blockscout.multichainAggregator.v1.Address.TokenType.TOKEN_TYPE_ERC_20", "#[serde(rename = \"ERC-20\")]")
.field_attribute(".blockscout.multichainAggregator.v1.Address.TokenType.TOKEN_TYPE_ERC_721", "#[serde(rename = \"ERC-721\")]")
.field_attribute(".blockscout.multichainAggregator.v1.Address.TokenType.TOKEN_TYPE_ERC_1155", "#[serde(rename = \"ERC-1155\")]")
.field_attribute(".blockscout.multichainAggregator.v1.Address.TokenType.TOKEN_TYPE_ERC_404", "#[serde(rename = \"ERC-404\")]");
config.compile_protos(protos, includes)?;
Ok(())
}
Expand Down

0 comments on commit ee85ca0

Please sign in to comment.