Skip to content

Commit

Permalink
Fix: storage type
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 29, 2023
1 parent 710504d commit 25ddc80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/views/michelson_storage_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func NewMichelsonStorageView(impl contract.ViewImplementation, name string, stor
if !impl.MichelsonStorageView.IsParameterEmpty() {
parameter = impl.MichelsonStorageView.Parameter
}
if storageType[0] == '[' {
storageType = storageType[1 : len(storageType)-1]
}
return &MichelsonStorageView{
Parameter: parameter,
ReturnType: impl.MichelsonStorageView.ReturnType,
Expand Down

0 comments on commit 25ddc80

Please sign in to comment.