Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
d43c93a7
Commit
d43c93a7
authored
7 years ago
by
asynchronous rob
Browse files
Options
Downloads
Patches
Plain Diff
update native executor tests to use new tx format
parent
af2fdc54
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/executor/src/native_executor.rs
+1
-1
1 addition, 1 deletion
substrate/executor/src/native_executor.rs
substrate/wasm-runtime/polkadot/src/runtime/system.rs
+2
-2
2 additions, 2 deletions
substrate/wasm-runtime/polkadot/src/runtime/system.rs
with
3 additions
and
3 deletions
substrate/executor/src/native_executor.rs
+
1
−
1
View file @
d43c93a7
...
...
@@ -49,7 +49,7 @@ mod tests {
const
BLOATY_CODE
:
&
[
u8
]
=
include_bytes!
(
"../../wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.wasm"
);
const
COMPACT_CODE
:
&
[
u8
]
=
include_bytes!
(
"../../wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.compact.wasm"
);
fn
tx
()
->
Vec
<
u8
>
{
"
679fcf0a846b4224c84ecad7d91a26241c46d00cb53d6480a363274e8965ee34b0b80b4b2e3836d3d8f8f12c0c1aef7350af587d9aee3883561d11726068ac0a
2f8c6129d816cf51c374bc7f08c3e63ed156cf78aefb4a6550d97b87997977ee000000000000000002
28000000
d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a4500000000000000"
.convert
()
}
fn
tx
()
->
Vec
<
u8
>
{
"2f8c6129d816cf51c374bc7f08c3e63ed156cf78aefb4a6550d97b87997977ee000000000000000002d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a4500000000000000
b543b41e4b7a0270eddf57ed6c435df04bb63f71c79f6ae2530ab26c734bb4e8cd57b1c190c41d5791bcdea66a16c7339b1e883e5d0538ea2d9acea800d60a00
"
.convert
()
}
#[test]
fn
panic_execution_with_foreign_code_gives_error
()
{
...
...
This diff is collapsed.
Click to expand it.
substrate/wasm-runtime/polkadot/src/runtime/system.rs
+
2
−
2
View file @
d43c93a7
...
...
@@ -273,10 +273,10 @@ mod tests {
nonce
:
0
,
function
:
Function
::
StakingTransfer
(
two
,
69
),
},
signature
:
"
679fcf0a846b4224c84ecad7d91a26241c46d00cb53d6480a363274e8965ee34b0b80b4b2e3836d3d8f8f12c0c1aef7350af587d9aee3883561d11726068ac0a
"
.parse
()
.unwrap
(),
signature
:
"
b543b41e4b7a0270eddf57ed6c435df04bb63f71c79f6ae2530ab26c734bb4e8cd57b1c190c41d5791bcdea66a16c7339b1e883e5d0538ea2d9acea800d60a00
"
.parse
()
.unwrap
(),
};
// tx: 2f8c6129d816cf51c374bc7f08c3e63ed156cf78aefb4a6550d97b87997977ee00000000000000000228000000d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a4500000000000000
// sig:
679fcf0a846b4224c84ecad7d91a26241c46d00cb53d6480a363274e8965ee34b0b80b4b2e3836d3d8f8f12c0c1aef7350af587d9aee3883561d11726068ac0a
// sig:
b543b41e4b7a0270eddf57ed6c435df04bb63f71c79f6ae2530ab26c734bb4e8cd57b1c190c41d5791bcdea66a16c7339b1e883e5d0538ea2d9acea800d60a00
let
h
=
Header
{
parent_hash
:
H256
([
69u8
;
32
]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment