mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 23:18:01 +00:00
contracts: Allow contracts to dispatch calls into the runtime (#9276)
* contracts: Allow contracts to dispatch calls into the runtime * Fix RPC tests * Fix typo * Replace () by AllowAllFilter and DenyAllFilter * Add rust doc * Fixup for `()` removal * Fix lowest gas calculation * Rename AllowAllFilter and DenyAllFilter * Updated changelog
This commit is contained in:
committed by
GitHub
parent
2f31602896
commit
e01ac8cea0
@@ -385,7 +385,8 @@ mod tests {
|
||||
}
|
||||
test(r#"{
|
||||
"gasConsumed": 5000,
|
||||
"debugMessage": "0x68656c704f6b",
|
||||
"gasRequired": 8000,
|
||||
"debugMessage": "HelloWorld",
|
||||
"result": {
|
||||
"Ok": {
|
||||
"flags": 5,
|
||||
@@ -395,7 +396,8 @@ mod tests {
|
||||
}"#);
|
||||
test(r#"{
|
||||
"gasConsumed": 3400,
|
||||
"debugMessage": "0x68656c70457272",
|
||||
"gasRequired": 5200,
|
||||
"debugMessage": "HelloWorld",
|
||||
"result": {
|
||||
"Err": "BadOrigin"
|
||||
}
|
||||
@@ -411,7 +413,8 @@ mod tests {
|
||||
}
|
||||
test(r#"{
|
||||
"gasConsumed": 5000,
|
||||
"debugMessage": "0x68656c704f6b",
|
||||
"gasRequired": 8000,
|
||||
"debugMessage": "HelloWorld",
|
||||
"result": {
|
||||
"Ok": {
|
||||
"result": {
|
||||
@@ -425,7 +428,8 @@ mod tests {
|
||||
}"#);
|
||||
test(r#"{
|
||||
"gasConsumed": 3400,
|
||||
"debugMessage": "0x68656c70457272",
|
||||
"gasRequired": 5200,
|
||||
"debugMessage": "HelloWorld",
|
||||
"result": {
|
||||
"Err": "BadOrigin"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user