Comments (2)
and if i have something like this:
// callbacks
#[callback]
fn tmp_freeze_callback(
&self,
#[call_result] result: ManagedAsyncCallResult<()>,
address: &ManagedAddress,
) {
match result {
ManagedAsyncCallResult::Ok(()) => {
// send the tokens
self.send().direct_esdt(
address,
&self.accepted_token_id().get(),
0,
&BigUint::from(10u64),
);
}
ManagedAsyncCallResult::Err(_) => {
// this can only fail if the kitty_ownership contract address is invalid
// nothing to revert in case of error
}
}
}
self.send()
.esdt_system_sc_proxy()
.freeze(&token_id, &address)
.async_call()
.with_callback(self.callbacks().tmp_freeze_callback(&address))
.call_and_exit();
i get:
> erdpy contract test
INFO:projects.core:run_tests.project: /home/user/vesting
INFO:myprocess:run_process: ['/home/user/elrondsdk/vmtools/mandos-test', '/home/user/vesting/mandos'], in folder: None
CRITICAL:cli:External process error:
Command line: ['/home/user/elrondsdk/vmtools/mandos-test', '/home/user/vesting/mandos']
Output: Scenario: vesting-fund.scen.json ... FAIL: result code mismatch. Tx 'deploy'. Want: 0. Have: 5 (out of gas). Message: not enough gas
Scenario: vesting-init.scen.json ... FAIL: result code mismatch. Tx 'deploy'. Want: 0. Have: 5 (out of gas). Message: not enough gas
Scenario: vesting-owner-send-tokens-to-investor.scen.json ... FAIL: result code mismatch. Tx 'deploy'. Want: 0. Have: 5 (out of gas). Message: not enough gas
Done. Passed: 0. Failed: 3. Skipped: 0.
ERROR: some tests failed
from mx-sdk-rs.
Mandos does not currently support any operation that involves the ESDT System SC, since it is neither mocked nor imported. It would be nice to have it, but until then you will need to test this on a testnet.
from mx-sdk-rs.
Related Issues (20)
- Collections' `Iter` types are not accessible by SDK users
- [BUG] Incorrect call_value in callback HOT 2
- [BUG] Caching of call_value().egld_value() breaks thing HOT 1
- Chain VM has invalid sign assertion HOT 3
- [QUESTION, WORKFLOW DISCUSSION] Liquid staking HOT 8
- Scenario Checker for Transaction Logs in Rust Testing Framework HOT 2
- How can i fetch price of USDT in EGLD using exchange in rust??
- [Feature Request] nth_root for BigUint HOT 1
- Bug : StaticApi is used for TxCall -> ContractCallWithEgld conversion HOT 2
- BigFloat precision issue HOT 1
- TypeAbi markup should export the struct into .abi.json HOT 2
- Query's errors not handled
- DebuggerBackend panics when an account is not found HOT 1
- Deriving TopEncode on an enum with a field named "buffer" doesn't work HOT 1
- Critical error: "Memory allocation forbidden" for promises callback with ManagedAddress parameter HOT 2
- Edgecase: Enum with exactly 256 variants not accepted HOT 4
- execute_on_dest_context_with_back_transfers is unintuitive
- Test Issue
- sc-meta fails to install due to yanked version of zip HOT 1
- Some of the documentation links are probably dead after the project was renamed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mx-sdk-rs.