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

Updating syndote contract to sails #508

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
4,113 changes: 4,113 additions & 0 deletions contracts/syndote/app/out.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/syndote/app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

use sails_rs::prelude::*;
pub mod services;
use services::game::GameService;
use services::game::{Config, GameService};
pub struct Program(());

#[program]
impl Program {
pub async fn new(dns_id_and_name: Option<(ActorId, String)>) -> Self {
GameService::init(dns_id_and_name).await;
pub async fn new(config: Config, dns_id_and_name: Option<(ActorId, String)>) -> Self {
GameService::init(config, dns_id_and_name).await;
Self(())
}

Expand Down
Loading
Loading