Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Nov 14, 2024
1 parent fb9c69e commit b639444
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/scripts/polkadot-omni-node/build-injected.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export BINARY=polkadot-omni-node
export ARTIFACTS_FOLDER=$1
# export TAGS=...

$PROJECT_ROOT/docker/scripts/build-injected.sh
$PROJECT_ROOT/docker/scripts/build-injected.sh
36 changes: 36 additions & 0 deletions substrate/frame/revive/fixtures/contracts/extcodesize.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// This file is part of Substrate.

// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![no_std]
#![no_main]

use common::{input, u64_output};
use uapi::{HostFn, HostFnImpl as api};

#[no_mangle]
#[polkavm_derive::polkavm_export]
pub extern "C" fn deploy() {}

#[no_mangle]
#[polkavm_derive::polkavm_export]
pub extern "C" fn call() {
input!(address: &[u8; 20], expected: u64,);

let received = u64_output!(api::code_size, address);

assert_eq!(expected, received);
}

0 comments on commit b639444

Please sign in to comment.