Skip to content

Commit

Permalink
fix: change type to nature
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 12, 2024
1 parent cc64489 commit d1d3457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/src/data/decoders/signature.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub type Signature {
}

pub fn decode_signature(dyn) {
use res <- result.try(dynamic.field("type", dynamic.string)(dyn))
use res <- result.try(dynamic.field("nature", dynamic.string)(dyn))
case res {
"constant" -> decode_constant(dyn)
"function" -> decode_function(dyn)
Expand Down

0 comments on commit d1d3457

Please sign in to comment.