-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: add approve, burn_from, transfer_from #29
Conversation
@@ -623,9 +622,6 @@ jobs: | |||
name: Unit tests | |||
env: RUST_BACKTRACE=1 | |||
command: cargo unit-test --locked | |||
- run: | |||
name: Integration tests |
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.
As the file for the integration test does not exist, I removed it once as it was an error.
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.
Besides one test code change, everything else looks good to me.
@@ -525,7 +525,7 @@ mod tests { | |||
fn create_contract(owner: String) -> (Extern<MockStorage, MockApi, MockQuerier>, Env) { | |||
let mut deps = mock_dependencies(20, &coins(1000, "cony")); | |||
let env = mock_env(owner, &coins(1000, "cony")); | |||
let res = init(&mut deps, env, InitMsg {}).unwrap(); | |||
let res = init(&mut deps, env.clone(), InitMsg {}).unwrap(); |
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.
Why should clone env?
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.
create_contract finally specifies env as a return value.
If you don't pass it to init function with a clone, the ownership will be moved and you'll get a build error.
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.
got it thanks, LGTM
* feat: add approve, burn_from, transfer_from * fix: config.yml * fix: update schema * fix: msg name * fix: update schema
Closes: #28
Description
I added approve, burn_from, transfer_from for token encode library.
The test is run with the https://github.com/line/link-modules/pull/42.
Motivation and context
How has this been tested?
Checklist: