-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to FVM SDK 3.0.0-alpha.22, shared 3.0.0-alpha.17, ipld_encoding 0.3.3 #1095
Conversation
e1f3756
to
6af6d3f
Compare
actors/datacap/src/lib.rs
Outdated
self.rt.message().receiver().id().unwrap() | ||
} | ||
|
||
// TODO: What's the best way to avoid this duplication? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help sought here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The solution now looks good, please remove this comment.
6af6d3f
to
095adb1
Compare
&& expected_msg.params == params | ||
&& expected_msg.value == value, | ||
); | ||
assert_eq!(expected_msg.to, *to); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes debugging failures easier.
095adb1
to
f8e2062
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1095 +/- ##
==========================================
- Coverage 89.34% 89.17% -0.18%
==========================================
Files 93 93
Lines 19613 19637 +24
==========================================
- Hits 17524 17511 -13
- Misses 2089 2126 +37
|
f8e2062
to
0b87dbd
Compare
0b87dbd
to
4ab4967
Compare
|
||
fn set_state_root(&mut self, root: &Cid) -> Result<(), ActorError> { | ||
Ok(fvm::sself::set_root(root)?) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok if we're going to need these for the EVM actor, otherwise would prefer not to add them.
Looks good after we resolve the token library syscall thing |
7045dc3
to
7f13c4c
Compare
actors/datacap/src/lib.rs
Outdated
let msg = Messenger { rt }; | ||
let intermediate = hook.call(&&msg).actor_result()?; | ||
let msg = SyscallProvider { rt }; | ||
let intermediate = hook.call(as_token(&mut st, &msg).runtime()).actor_result()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is even more funky now as there's no logical need for the state to be involved in getting a runtime abstraction. You actually just need an ActorRuntime
, as constructed in as_token
. Copy just that bit of construction here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can clean up the hook call, otherwise this looks good (after deps land).
actors/datacap/src/lib.rs
Outdated
self.rt.message().receiver().id().unwrap() | ||
} | ||
|
||
// TODO: What's the best way to avoid this duplication? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The solution now looks good, please remove this comment.
7f13c4c
to
0d13662
Compare
…g 0.3.3 (filecoin-project#1095) * Update to FVM SDK 3.0.0-alpha.22, shared 3.0.0-alpha.17, ipld_encoding 0.3.3 * Datacap: Turn Messenger struct into SyscallProvider * Update frc42_dispatch, frc46_tokn, fvm_actor_utils
This is a pre-factor that updates this repo to rely on FVM3 deps, without introducing or supporting any FEVM functionality. The new crates themselves do include some FEVM changes:
Most of the changes here result from integrating the latest changes in the https://github.com/helix-onchain/filecoin repo.
Needs: