We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c7346 commit 319e43eCopy full SHA for 319e43e
actors/datacap/src/lib.rs
@@ -67,6 +67,7 @@ pub enum Method {
67
RevokeAllowance = 18,
68
Burn = 19,
69
BurnFrom = 20,
70
+ Allowance = 21,
71
}
72
73
pub struct Actor;
@@ -581,6 +582,10 @@ impl ActorCode for Actor {
581
582
let ret = Self::burn_from(rt, cbor::deserialize_params(params)?)?;
583
serialize(&ret, "burn_from result")
584
585
+ Some(Method::Allowance) => {
586
+ let ret = Self::allowance(rt, cbor::deserialize_params(params)?)?;
587
+ serialize(&ret, "allowance result")
588
+ }
589
None => Err(actor_error!(unhandled_message; "Invalid method")),
590
591
0 commit comments