Skip to content

Commit

Permalink
improve value test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Mar 22, 2023
1 parent 9125ce1 commit fcb2519
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 355 deletions.
7 changes: 0 additions & 7 deletions runtime/format/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,3 @@ func StorageCapability(borrowType string, address string, path string) string {
path,
)
}

func AccountCapability(address string) string {
return fmt.Sprintf(
"Capability(address: %s)",
address,
)
}
5 changes: 5 additions & 0 deletions values.go
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,11 @@ func (v Function) Type() Type {
return v.FunctionType
}

func (v Function) WithType(functionType *FunctionType) Function {
v.FunctionType = functionType
return v
}

func (v Function) MeteredType(common.MemoryGauge) Type {
return v.FunctionType
}
Expand Down
Loading

0 comments on commit fcb2519

Please sign in to comment.