-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#![no_std] | ||
use soroban_sdk::{contract, contractimpl, Env, Symbol}; | ||
use soroban_sdk::{contract, contractimpl, Env, symbol_short}; | ||
|
||
#[contract] | ||
pub struct Contract; | ||
|
||
#[contractimpl] | ||
impl Contract { | ||
pub fn add(env: Env, a: i32, b: i32) -> i32 { | ||
env.events().publish((Symbol::short("add"),), (a, b)); | ||
env.events().publish((symbol_short!("add"),), (a, b)); | ||
a + b | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-9 Bytes
(100%)
soroban-test-wasms/wasm-workspace/opt/auth_test_contract.wasm
Binary file not shown.
Binary file modified
BIN
-165 Bytes
(87%)
soroban-test-wasms/wasm-workspace/opt/example_add_f32.wasm
Binary file not shown.
Binary file modified
BIN
-165 Bytes
(86%)
soroban-test-wasms/wasm-workspace/opt/example_add_i32.wasm
Binary file not shown.
Binary file modified
BIN
-101 Bytes
(95%)
soroban-test-wasms/wasm-workspace/opt/example_complex.wasm
Binary file not shown.
Binary file modified
BIN
+1.08 KB
(140%)
soroban-test-wasms/wasm-workspace/opt/example_contract_data.wasm
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(120%)
soroban-test-wasms/wasm-workspace/opt/example_create_contract.wasm
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(110%)
soroban-test-wasms/wasm-workspace/opt/example_fannkuch.wasm
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(110%)
soroban-test-wasms/wasm-workspace/opt/example_hostile.wasm
Binary file not shown.
Binary file modified
BIN
-185 Bytes
(92%)
soroban-test-wasms/wasm-workspace/opt/example_invoke_contract.wasm
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(120%)
soroban-test-wasms/wasm-workspace/opt/example_linear_memory.wasm
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(110%)
soroban-test-wasms/wasm-workspace/opt/example_simple_account.wasm
Binary file not shown.
Binary file modified
BIN
+125 Bytes
(130%)
soroban-test-wasms/wasm-workspace/opt/example_updateable_contract.wasm
Binary file not shown.
Binary file not shown.