-
Notifications
You must be signed in to change notification settings - Fork 256
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
chore: update workspaces to 0.3 #789
Conversation
I left some TODOs in nft and ft examples that should now be resolvable with workspaces 0.2. You could tackle them in this PR or I can do it in a follow up PR, up to you |
I'll separate that change since this is blocking #742 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit but overall looking good
@@ -27,25 +27,25 @@ async fn init( | |||
initial_balance: U128, | |||
) -> anyhow::Result<(Contract, Account, Contract)> { | |||
let ft_contract = | |||
worker.dev_deploy(include_bytes!("../res/fungible_token.wasm").to_vec()).await?; | |||
worker.dev_deploy(&include_bytes!("../res/fungible_token.wasm").to_vec()).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you forgot to clean some of these up:
worker.dev_deploy(&include_bytes!("../res/fungible_token.wasm").to_vec()).await?; | |
worker.dev_deploy(include_bytes!("../res/fungible_token.wasm")).await?; |
let wasm = fs::read("res/callback_results.wasm").await?; | ||
|
||
let worker = workspaces::sandbox(); | ||
let worker = workspaces::sandbox().await?; | ||
|
||
let contract = worker.dev_deploy(wasm).await?; | ||
let contract = worker.dev_deploy(&wasm).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason not to use include_bytes!
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried to keep this change unopinionated, can follow with that change in another
WIP since test is broken