From b5a128bba46ca653ef35ea8393cdcd33a7e12f6a Mon Sep 17 00:00:00 2001 From: bal7hazar Date: Fri, 18 Oct 2024 11:00:40 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../abis/contracts/game_center-Actions-38eede8c.json | 4 ++-- .../base/contracts/game_center-Actions-38eede8c.toml | 4 ++-- contracts/src/systems/actions.cairo | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/contracts/manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json b/contracts/manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json index 5f4824b..d3265ca 100644 --- a/contracts/manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json +++ b/contracts/manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json @@ -296,7 +296,7 @@ "type": "core::felt252" }, { - "name": "points", + "name": "karma", "type": "core::integer::u16" } ], @@ -320,7 +320,7 @@ "type": "core::felt252" }, { - "name": "points", + "name": "karma", "type": "core::integer::u16" } ], diff --git a/contracts/manifests/dev/base/contracts/game_center-Actions-38eede8c.toml b/contracts/manifests/dev/base/contracts/game_center-Actions-38eede8c.toml index ddae128..baf1fcb 100644 --- a/contracts/manifests/dev/base/contracts/game_center-Actions-38eede8c.toml +++ b/contracts/manifests/dev/base/contracts/game_center-Actions-38eede8c.toml @@ -1,6 +1,6 @@ kind = "DojoContract" -class_hash = "0x1eb79fe27b41d6d6bf10bc5c4f5ea2f5f33b3378908df004597eebfae6fe2ac" -original_class_hash = "0x1eb79fe27b41d6d6bf10bc5c4f5ea2f5f33b3378908df004597eebfae6fe2ac" +class_hash = "0x51f892652a06d0701a0d4275ab7dd5ba3c79ef44d91a7083742ce96f96a0f12" +original_class_hash = "0x51f892652a06d0701a0d4275ab7dd5ba3c79ef44d91a7083742ce96f96a0f12" base_class_hash = "0x0" abi = "manifests/dev/base/abis/contracts/game_center-Actions-38eede8c.json" reads = [] diff --git a/contracts/src/systems/actions.cairo b/contracts/src/systems/actions.cairo index 056ec70..ab66ba0 100644 --- a/contracts/src/systems/actions.cairo +++ b/contracts/src/systems/actions.cairo @@ -30,14 +30,14 @@ trait IActions { world_address: felt252, namespace: felt252, identifier: felt252, - points: u16 + karma: u16 ); fn update_achievement( self: @TContractState, world_address: felt252, namespace: felt252, identifier: felt252, - points: u16 + karma: u16 ); fn publish_achievement( self: @TContractState, world_address: felt252, namespace: felt252, identifier: felt252 @@ -204,7 +204,7 @@ mod Actions { world_address: felt252, namespace: felt252, identifier: felt252, - points: u16, + karma: u16, ) { // [Check] Caller is the game owner let world = self.world(); @@ -212,7 +212,7 @@ mod Actions { // [Effect] Register achievement self .registrable - .register_achievement(world, world_address, namespace, identifier, points) + .register_achievement(world, world_address, namespace, identifier, karma) } fn update_achievement( @@ -220,13 +220,13 @@ mod Actions { world_address: felt252, namespace: felt252, identifier: felt252, - points: u16, + karma: u16, ) { // [Check] Caller is the game owner let world = self.world(); self.controllable.assert_is_game_owner(world, world_address, namespace); // [Effect] Update achievement - self.registrable.update_achievement(world, world_address, namespace, identifier, points) + self.registrable.update_achievement(world, world_address, namespace, identifier, karma) } fn publish_achievement(