Skip to content

Commit

Permalink
corrected comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Oct 10, 2023
1 parent 63aa155 commit 3b8d3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/blockchain/calypso/calypso.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func NewContract(srvc access.Service) Contract {
return contract
}

// Execute implements native.Contract. It checks t the appropriate command.
// Execute implements native.Contract. It checks that command is formed correctly before running it.
func (c Contract) Execute(snap store.Snapshot, step execution.Step) error {
creds := NewCreds()

Expand All @@ -198,6 +198,7 @@ func (c Contract) Execute(snap store.Snapshot, step execution.Step) error {
return c.ExecuteCommand(snap, step, cmd)
}

// ExecuteCommand executes the appropriate command.
func (c Contract) ExecuteCommand(snap store.Snapshot, step execution.Step, cmd []byte) error {
switch Command(cmd) {
case CmdAdvertiseSmc:
Expand Down

0 comments on commit 3b8d3a3

Please sign in to comment.