Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified auth in timelock example. #148

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Oct 10, 2022

What

Now the example only uses invoker auth.

Why

As discussed in #146, the auth is not that relevant for this example,

Known limitations

N/A

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for updating.

Comment on lines -10 to +17
use soroban_auth::{
verify, {Identifier, Signature},
};
use soroban_sdk::{contractimpl, contracttype, BigInt, BytesN, Env, Symbol, Vec};
use soroban_sdk::{contractimpl, contracttype, Address, BigInt, BytesN, Env, Vec};

mod token {
soroban_sdk::contractimport!(file = "../soroban_token_spec.wasm");
}

use token::{Identifier, Signature};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fyi it"s also still fine to use soroban_auth::Identifier and Signature, as the token versions are just type aliases to them. It"s also fine to do what this change does, just FYI in case they were understood to be different types.

@leighmcculloch leighmcculloch merged commit a7bab42 into stellar:main Oct 11, 2022
@dmkozh dmkozh deleted the timelock_upd branch October 11, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants