Skip to content

Commit 8da0f24

Browse files
committed
Add constructor to blockchain account
1 parent 3c21072 commit 8da0f24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/contracts/blockchain_context.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ pub struct BlockchainDesc {
8181
}
8282

8383
impl BlockchainAccount {
84+
pub fn new(context: BlockchainContext, account: Account) -> Self {
85+
Self { context, account }
86+
}
87+
8488
pub fn run_local(
8589
&mut self,
8690
function: &Function,

0 commit comments

Comments
 (0)