diff --git a/cardinal/persona_test.go b/cardinal/persona_test.go index 5f1d30c13..33a2de219 100644 --- a/cardinal/persona_test.go +++ b/cardinal/persona_test.go @@ -41,7 +41,7 @@ func TestPersonaTagIsValid(t *testing.T) { } func TestCreatePersonaTransactionAutomaticallyCreated(t *testing.T) { - // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine. + // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine. tf := NewTestFixture(t, nil) world := tf.World tf.StartWorld() @@ -125,7 +125,7 @@ func TestDuplicatePersonaTagsInTickAreOnlyRegisteredOnce(t *testing.T) { } func TestCreatePersonaFailsIfTagIsInvalid(t *testing.T) { - // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine. + // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine. tf := NewTestFixture(t, nil) world := tf.World tf.StartWorld() @@ -140,7 +140,7 @@ func TestCreatePersonaFailsIfTagIsInvalid(t *testing.T) { } func TestSamePersonaWithDifferentCaseCannotBeClaimed(t *testing.T) { - // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine. + // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine. tf := NewTestFixture(t, nil) world := tf.World tf.StartWorld() @@ -154,7 +154,7 @@ func TestSamePersonaWithDifferentCaseCannotBeClaimed(t *testing.T) { } func TestCanAuthorizeAddress(t *testing.T) { - // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine. + // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine. tf := NewTestFixture(t, nil) world := tf.World tf.StartWorld() @@ -192,7 +192,7 @@ func TestCanAuthorizeAddress(t *testing.T) { } func TestAuthorizeAddressFailsOnInvalidAddress(t *testing.T) { - // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine. + // Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine. tf := NewTestFixture(t, nil) world := tf.World tf.StartWorld() diff --git a/cardinal/receipt/receipt.go b/cardinal/receipt/receipt.go index ceb4b46d8..cbc58b635 100644 --- a/cardinal/receipt/receipt.go +++ b/cardinal/receipt/receipt.go @@ -49,7 +49,7 @@ func (r Receipt) MarshalJSON() ([]byte, error) { }) } -// NewHistory creates a object that can track transaction receipts over a number of ticks. +// NewHistory creates an object that can track transaction receipts over a number of ticks. func NewHistory(currentTick uint64, ticksToStore int) *History { // Add an extra tick for the "current" tick. ticksToStore++ diff --git a/cardinal/world_fixture.go b/cardinal/world_fixture.go index 6368341ab..18deb62e7 100644 --- a/cardinal/world_fixture.go +++ b/cardinal/world_fixture.go @@ -146,7 +146,7 @@ func (t *TestFixture) httpURL(path string) string { return fmt.Sprintf("http://%s/%s", t.BaseURL, path) } -// Post executes a http POST request to this TextFixture's cardinal server. +// Post executes an http POST request to this TextFixture's cardinal server. func (t *TestFixture) Post(path string, payload any) *http.Response { bz, err := json.Marshal(payload) assert.NilError(t, err) @@ -163,7 +163,7 @@ func (t *TestFixture) Post(path string, payload any) *http.Response { return resp } -// Get executes a http GET request to this TestFixture's cardinal server. +// Get executes an http GET request to this TestFixture's cardinal server. func (t *TestFixture) Get(path string) *http.Response { req, err := http.NewRequestWithContext(context.Background(), http.MethodGet, t.httpURL(strings.Trim(path, "/")), nil) diff --git a/docs/cardinal/game/cql.mdx b/docs/cardinal/game/cql.mdx index 2847f829f..b837b0bde 100644 --- a/docs/cardinal/game/cql.mdx +++ b/docs/cardinal/game/cql.mdx @@ -59,7 +59,7 @@ Two functions are provided in the language that accept a variadic amount of comp **Examples:** -- `CONTAINS(armComponent)` is a query for all entities that have a arm component. The entity can have more components than just the arm. +- `CONTAINS(armComponent)` is a query for all entities that have an arm component. The entity can have more components than just the arm. - `CONTAINS(armComponent, legComponent)` is query for all entities that have both an arm component and a leg component. The entity can have more components than the arm and the leg. @@ -92,4 +92,4 @@ You can use parenthesis to specify and change precedence in CQL. - The above is a query for either an entity with only a leg component or an entity that does not have a health component and also does not have an attack component. - Example: `(EXACT(legComponent) | !CONTAINS(healthComponent)) & !CONTAINS(attackComponent)` -- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain a attack component. +- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain an attack component. diff --git a/evm/app/export.go b/evm/app/export.go index e6d30d98d..c50f5e8f2 100644 --- a/evm/app/export.go +++ b/evm/app/export.go @@ -79,7 +79,7 @@ func (app *App) ExportAppStateAndValidators( func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) { applyAllowedAddrs := false - // check if there is a allowed address list + // check if there is an allowed address list if len(jailAllowedAddrs) > 0 { applyAllowedAddrs = true } diff --git a/relay/nakama/utils/nakama.go b/relay/nakama/utils/nakama.go index 301616900..a510c0539 100644 --- a/relay/nakama/utils/nakama.go +++ b/relay/nakama/utils/nakama.go @@ -22,7 +22,7 @@ func GetUserID(ctx context.Context) (string, error) { return userID, nil } -// MarshalResult marshals the given result and converts any marshalling error into a "Internal" RPC error. +// MarshalResult marshals the given result and converts any marshalling error into an "Internal" RPC error. func MarshalResult(logger runtime.Logger, result any) (string, error) { bz, err := json.Marshal(result) if err != nil {