From 88aa1f06b302da322a6f9537cced15c2287e9a37 Mon Sep 17 00:00:00 2001 From: deepanshutr Date: Mon, 25 Jul 2022 15:02:15 +0530 Subject: [PATCH] Cleaning up code. --- CONTRIBUTING.md | 2 +- modules/assets/internal/mappable/asset.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b13c90b4..0a597cc96 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,8 +54,8 @@ When proposing an architecture decision for the AssetMantle modules, please star an [issue](https://github.com/AssetMantle/modules/issues/new/choose) or a [discussion](https://github.com/AssetMantle/modules/discussions/new) with a summary of the proposal. Once the proposal has been discussed and there is rough alignment on a high-level approach to the design, -the [ADR creation process](./docs/architecture/PROCESS.md) can begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the proposed +the [ADR creation process](./docs/architecture/PROCESS.md) can begin. We implementation. If you would like to see examples of how these are written, please refer to the current ADR. diff --git a/modules/assets/internal/mappable/asset.go b/modules/assets/internal/mappable/asset.go index 76aafcfef..ca92e3854 100644 --- a/modules/assets/internal/mappable/asset.go +++ b/modules/assets/internal/mappable/asset.go @@ -11,7 +11,7 @@ import ( "github.com/AssetMantle/modules/schema/ids" "github.com/AssetMantle/modules/schema/lists" "github.com/AssetMantle/modules/schema/mappables" - properties2 "github.com/AssetMantle/modules/schema/properties" + "github.com/AssetMantle/modules/schema/properties" "github.com/AssetMantle/modules/schema/properties/constants" "github.com/AssetMantle/modules/schema/qualified/base" codecUtilities "github.com/AssetMantle/modules/utilities/codec" @@ -23,21 +23,21 @@ type asset struct { var _ mappables.Asset = (*asset)(nil) -func (asset asset) GetBurn() properties2.Property { +func (asset asset) GetBurn() properties.Property { if burn := asset.GetProperty(constants.BurnProperty); burn != nil { return burn } return constants.Burn } -func (asset asset) GetLock() properties2.Property { +func (asset asset) GetLock() properties.Property { if lock := asset.GetProperty(constants.LockProperty); lock != nil { return lock } return constants.Lock } -func (asset asset) GetSupply() properties2.Property { +func (asset asset) GetSupply() properties.Property { if supply := asset.GetProperty(constants.SupplyProperty); supply != nil { return supply }