Skip to content

Commit

Permalink
Revert "Merge branch 'add_value_context' of github.com:ava-labs/hyper…
Browse files Browse the repository at this point in the history
…sdk into add_value_context"

This reverts commit 7fc0141, reversing
changes made to aa50464.
  • Loading branch information
iFrostizz committed Sep 30, 2024
1 parent 7fc0141 commit b88ca69
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 472 deletions.
2 changes: 0 additions & 2 deletions x/contracts/runtime/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type Context struct {
Timestamp uint64
Value uint64
ActionID ids.ID
Value uint64
}

type CallInfo struct {
Expand Down Expand Up @@ -109,7 +108,6 @@ func (p *ContractInstance) call(ctx context.Context, callInfo *CallInfo) ([]byte
Timestamp: callInfo.Timestamp,
Value: callInfo.Value,
ActionID: callInfo.ActionID,
Value: callInfo.Value,
}
paramsBytes, err := Serialize(contractCtx)
if err != nil {
Expand Down
2 changes: 0 additions & 2 deletions x/contracts/wasmlanche/tests/wasmtime-integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,13 @@ impl TestCrate {
let height: u64 = 0;
let timestamp: u64 = 0;
let mut action_id = vec![1; ID_LEN];
let value: u64 = 0;

// this is a hack to create a context since the constructor is private
let mut serialized_context = contract_id;
serialized_context.append(&mut actor);
serialized_context.append(&mut height.to_le_bytes().to_vec());
serialized_context.append(&mut timestamp.to_le_bytes().to_vec());
serialized_context.append(&mut action_id);
serialized_context.append(&mut value.to_le_bytes().to_vec());

self.allocate(serialized_context)
}
Expand Down
132 changes: 0 additions & 132 deletions x/programs/runtime/call_context_test.go

This file was deleted.

206 changes: 0 additions & 206 deletions x/programs/rust/wasmlanche-sdk/src/context.rs

This file was deleted.

Loading

0 comments on commit b88ca69

Please sign in to comment.