You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
394 B
21 lines
394 B
package Hush::Memo;
|
|
use strict;
|
|
use warnings;
|
|
use Try::Tiny;
|
|
use Hush::Util qw/barf/;
|
|
use Hush::Logger qw/debug/;
|
|
use Data::Dumper;
|
|
use JSON;
|
|
|
|
sub new {
|
|
my ($rpc,$options) = @_;
|
|
my $memo = {
|
|
txid => $options->{txid} || 0,
|
|
amount => $options->{amount} || 0.00,
|
|
memo => $options->{memo} || "",
|
|
};
|
|
|
|
return bless $memo, 'Hush::Memo';
|
|
}
|
|
|
|
1;
|
|
|