Skip to content

Commit

Permalink
Fixed the mismatch between the deployment transaction prelude and the…
Browse files Browse the repository at this point in the history
… reconstructed prelude.
  • Loading branch information
kairoski03 committed Sep 11, 2024
1 parent 74e9fb4 commit 8e7e98f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions check/src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,14 @@ pub async fn check(cfg: &CheckConfig) -> Result<ContractCheck> {
tx_code.extend(code_len);
tx_code.push(0x80); // DUP1
tx_code.push(0x60); // PUSH1
tx_code.push(42 + 1 + 32); // prelude + version + hash
tx_code.push(42 + 1); // prelude + version
tx_code.push(0x60); // PUSH1
tx_code.push(0x00);
tx_code.push(0x39); // CODECOPY
tx_code.push(0x60); // PUSH1
tx_code.push(0x00);
tx_code.push(0xf3); // RETURN
tx_code.push(0x00); // version
tx_code.extend(project_hash);
tx_code.extend(code_copied);
write_tx_data(TxKind::Deployment, &tx_code)?; // 트랜잭션 데이터를 작성하여 파일로 저장합니다.

Expand Down

0 comments on commit 8e7e98f

Please sign in to comment.