Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Nov 28, 2023
1 parent 722f3b6 commit 1581533
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion x/clock/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) {

// Function to handle contract execution errors. Returns true if error is present, false otherwise.
handleError := func(err error, idx int, contractAddress string) bool {

// Check if error is present
if err != nil {

Expand Down
4 changes: 0 additions & 4 deletions x/clock/keeper/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func (k Keeper) SetClockContract(ctx sdk.Context, contract types.ClockContract)
// Get store, marshal content
store := k.getStore(ctx)
bz, err := k.cdc.Marshal(&contract)

if err != nil {
return err
}
Expand All @@ -41,7 +40,6 @@ func (k Keeper) IsClockContract(ctx sdk.Context, contractAddress string) bool {

// Get a clock contract address from the KV store.
func (k Keeper) GetClockContract(ctx sdk.Context, contractAddress string) (*types.ClockContract, error) {

// Check if the contract is registered
if !k.IsClockContract(ctx, contractAddress) {
return nil, types.ErrContractNotRegistered
Expand Down Expand Up @@ -171,7 +169,6 @@ func (k Keeper) UnregisterContract(ctx sdk.Context, senderAddress string, contra

// Set the jail status of a clock contract in the KV store.
func (k Keeper) SetJailStatus(ctx sdk.Context, contractAddress string, isJailed bool) error {

// Get the contract
contract, err := k.GetClockContract(ctx, contractAddress)
if err != nil {
Expand All @@ -197,7 +194,6 @@ func (k Keeper) SetJailStatus(ctx sdk.Context, contractAddress string, isJailed

// Set the jail status of a clock contract by the sender address.
func (k Keeper) SetJailStatusBySender(ctx sdk.Context, senderAddress string, contractAddress string, jailStatus bool) error {

// Ensure the sender is the contract admin or creator
if ok, err := k.IsContractManager(ctx, senderAddress, contractAddress); !ok {
return err
Expand Down

0 comments on commit 1581533

Please sign in to comment.